Jinseong Jeon
4531080858
AA: introduce KtNotUnderContentRootModule impl to standalone mode
...
to gracefully handle element/file/etc without a binding module.
This could happen, e.g.,
1) source PSI created from KtPsiFactory, which uses literally dummy.kt
2) debugger that creates a code fragment on-the-fly
3) on-air analysis of non-physical files
2022-08-06 13:18:55 +02:00
Jinseong Jeon
e8e88b4eb2
AA: deprecate utils in StandaloneUtils
...
...in favor of StandaloneAnalysisAPISessionBuilder
2022-08-06 13:18:54 +02:00
Dmitry Gridin
4ceb170917
regenerate tests
2022-08-05 14:12:41 +02:00
Jinseong Jeon
6b0a5e2908
AA: register LLFir(Library|Builtin)SessionFactory
2022-08-02 17:33:45 +02:00
Ilya Kirillov
556add72ff
[Analysis API FIR] fix KDoc reference resolve for aliased imports
2022-07-28 01:37:54 +02:00
Ilya Kirillov
d9c4fda521
[Analysis API FIR] implement reference resolve inside KDoc
...
^KTIJ-22324 fixed
2022-07-28 01:37:53 +02:00
Ilya Kirillov
a0f0fa5a47
[Analysis API FIR] fix candidate collection for delegatedConstructor call
...
^KTIJ-20446
2022-07-22 00:58:59 +02:00
Ilya Kirillov
dd00062559
[analysis] introduce KtBuiltinsModule and remove hacks related to the stdlib module search
2022-07-19 17:17:33 +02:00
Ilya Kirillov
dc4527462f
[LL FIR] create separate library session for each library
2022-07-19 17:17:33 +02:00
Jaebaek Seo
8d5c6297c7
Add ReadWriteAccessCheckerFirImpl class
...
ReadWriteAccessCheckerFirImpl class is ReadWriteAccessChecker
implementation for FIR. We register it for both stand-alone and test
analsys. It is used by KotlinFirReferenceContributor.kt to check the
synthetic Java property.
2022-07-12 16:47:40 +02:00
Ilya Kirillov
184478858c
[Analysis API] add isNoinline/isCrossinline to the KtValueParameterSymbol
2022-07-05 10:34:29 +02:00
Ilya Kirillov
8f89f1b368
[Analysis API] add info about context receivers to the Analysis API
2022-07-05 10:34:28 +02:00
Ilya Kirillov
271ecfbd68
[Analysis] Try to fix randomly failing tests because of unregistered FileAttributeService
...
It should be unregistered with the application by ApplicationEnvironmentDisposer
which is registered in :compiler:tests-common-new
2022-07-01 11:33:21 +02:00
Jinseong Jeon
20d618c0a8
AA: populate CorePackageIndex
...
so that annotations in package-info.java can be propagated properly
2022-06-28 11:44:41 +02:00
Ilya Kirillov
89ff1f0c0b
[Analysis API FIR] fix member scope for enum entries without body
2022-06-24 15:36:32 +00:00
Kristoffer Andersen
3af0e57406
[FIR-IDE] Add DestructuringDeclarationEntry to SymbolProvider
2022-06-22 21:20:54 +02:00
Jinseong Jeon
2d52c59bc7
AA: introduce KtDynamicType
2022-06-22 20:14:39 +02:00
Ilya Kirillov
36f370f501
[Analysis API] add tests for KtTypeScope
2022-06-22 09:31:47 +02:00
Ilya Kirillov
b9907963fe
[Analysis API] add tests for KtSubstitutor
2022-06-22 09:31:47 +02:00
Ilya Kirillov
dafb132a17
[Analysis API] add few tests which checks contracts of signature substitutions
2022-06-22 09:31:43 +02:00
Ilya Kirillov
3525e42f11
[Analysis API] introduce substitutor builder
2022-06-22 09:31:43 +02:00
Ilya Kirillov
c95ac9f845
[Analysis API] add some basic tests for symbol substitution
2022-06-22 09:31:42 +02:00
Jinseong Jeon
87ba8525cf
AA: allow directory as source roots
2022-06-21 11:34:09 +02:00
Jinseong Jeon
4af2fcd633
AA: handle lib directory as a binary root
2022-06-21 11:34:09 +02:00
Jinseong Jeon
8c3df04c8e
AA: null check containing file for PsiElement
2022-06-21 11:34:09 +02:00
Jinseong Jeon
814920b344
AA: restore JavaRoot from binary roots in JDK module
2022-06-21 11:34:09 +02:00
Jinseong Jeon
13c7fde071
AA: avoid reflective service registrations
2022-06-21 11:34:09 +02:00
Jinseong Jeon
38c3fbc0d1
AA: remove a redundant service registration
2022-06-21 11:34:09 +02:00
Jinseong Jeon
abdc2cf85e
AA: populate SingleJavaFileRootsIndex properly
2022-06-16 22:14:18 +02:00
Jinseong Jeon
9ba6cf47ea
AA: use partition to group directory/jar library roots
2022-06-16 22:14:18 +02:00
Roman Golyshev
581ae5fcb7
[FIR IDE] Add a special type of KtCall for generic type qualifiers
...
^KTIJ-21672 Fixed
2022-06-14 15:00:13 +00:00
Roman Golyshev
4d6b424280
[FIR IDE] Properly handle generic types qualifiers
...
In code like `foo.Bar<Bazz>`, `Bar<Bazz>` is considered to be
`KtCallExpression` from the PSI point
^KT-52779 Fixed
2022-06-14 15:00:12 +00:00
Jinseong Jeon
5c147c1ded
AA: fail-safe binary root lookup
2022-06-09 10:35:17 +02:00
Jinseong Jeon
c1b2469e51
AA: register CoreJavaFileManager
...
in a similar way
KotlinCoreEnvironment.ProjectEnvironment.registerJavaPsiFacade does
2022-06-09 10:35:17 +02:00
Jinseong Jeon
af053fd8f3
AA: fail-safe JvmRoot lookup
2022-06-09 10:35:17 +02:00
Jinseong Jeon
aef3df0336
AA: introduce AA session and builder
2022-06-09 10:35:16 +02:00
Jinseong Jeon
5585d84808
AA: make utils in StandaloneProjectFactory more general
2022-06-09 10:35:16 +02:00
Jinseong Jeon
72bf702309
AA: utilize file lookup utils (to reuse in facade)
2022-06-09 10:35:16 +02:00
Jinseong Jeon
4cfefbd921
AA: introduce ProjectStructureProvider builder
2022-06-09 10:35:16 +02:00
Jinseong Jeon
8528f6244d
AA: introduce KtModule builders
2022-06-09 10:35:15 +02:00
Jinseong Jeon
d592dab4b6
AA: rename util file to match module/pcakge name
2022-06-09 10:35:15 +02:00
Jinseong Jeon
355fd48782
AA: remove test prefix at non-test module
2022-06-09 10:35:15 +02:00
Nikolay Lunyak
98c7399a35
[FIR] Remove the redundant backing field check
...
This commit fixes a failing visibility check
(FirSymbolByPsiTestGenerated.testBackingField) for the backing field.
Merge-request: KT-MR-6389
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com >
2022-06-02 08:36:14 +00:00
Ilya Kirillov
b5ad6f5db4
[analysis api] move analysis session classes to separate packages, use KtAnalysisApiInternals to mark internal API
2022-05-12 16:15:14 +02:00
Ilya Kirillov
eb9085c083
[analysis api] rename analyse -> analyze to match American word spelling
2022-05-12 16:15:13 +02:00
Jinseong Jeon
e830778b46
AA: fix typo in StandaloneProjectFactory
2022-05-09 00:22:53 +02:00
Jinseong Jeon
3f05ba04a9
AA: add JDK_HOME as dependent SDK module
2022-05-09 00:22:52 +02:00
Jinseong Jeon
af32a65c78
AA: use existing utils to define library scope
...
No visible differences from end clients, and we can avoid uses/shares of
Jar file system across modules
2022-05-09 00:22:52 +02:00
Ilya Kirillov
4ff38c9697
[fir low level, refactoring] rename LLFirModuleResolveState -> LLFirResolveSession
2022-05-05 10:43:13 +02:00
Jinseong Jeon
61cca31b6b
AA: special handling for converted constants
2022-04-22 18:55:30 +02:00