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
Ilya Kirillov
fe35204e9f
[analysis api] get rid of additional analyseWithCustomValidityToken
2022-05-12 16:15:11 +02:00
Jiaxiang Chen
7b038860b5
AA: add analyzeWithKtModule API for analyzing without KtElement
2022-05-12 16:15:03 +02:00
Ilya Kirillov
ef0160c026
[analysis api] rename ValidityToken -> KtLifetimeToken
2022-05-12 16:15:02 +02:00
Jinseong Jeon
3f05ba04a9
AA: add JDK_HOME as dependent SDK module
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
Ilya Kirillov
3b4eb2d788
[kotlin fir] fix creating symbol not in analysis scope
...
^KTIJ-21504 fixed
2022-04-19 19:34:21 +02:00
Ilya Kirillov
2649788b87
[analysis api fir] put every library into a separate KtModule in tests
2022-04-13 12:53:22 +02:00
Ilya Kirillov
e69fa1ae07
[analysis api, test] rework test infrastructure, add possibility to create multimodule tests
2022-04-13 12:53:19 +02:00
Ilya Kirillov
207ca7eb08
[analysis api, tests] simplify tests
2022-04-13 12:53:17 +02:00
Ilya Kirillov
037c50c26b
[analysis api, tests] move test classes to corresponding packages
2022-04-13 12:53:06 +02:00
Ilya Kirillov
78685e93d1
[analysis api, tests] move resolve call tests to separate package
2022-04-13 12:53:05 +02:00
Ilya Kirillov
4bd7fed1ea
[analysis api, test] rework test infrastructure, add multimodule tests
2022-04-13 12:53:01 +02:00
Ilya Kirillov
1e5cf80278
[analysis api, refactoring] move base test cases to base modules, improve service names
2022-04-13 12:53:00 +02:00
Ilya Kirillov
443ee4c860
[analysis api] allow generating test with for with more possible parameters
2022-04-13 12:52:59 +02:00
Ilya Kirillov
3206c0ce87
[analysis api, refactoring] get rid of HL name in class names
2022-04-13 12:52:57 +02:00
Ilya Kirillov
3838552a75
[analysis api] move some test framework parts to a separate module
2022-04-13 12:52:55 +02:00
Jinseong Jeon
24ec1e0cab
AA: include root when populating files for scope of KtLibraryModule
2022-03-15 19:50:18 +03:00
Jinseong Jeon
46707b0426
AA: test evaluation mode with same test inputs
2022-03-11 13:51:16 +01:00
Jinseong Jeon
606033e1e6
AA: introduce KtConstantEvaluationMode
2022-03-11 13:51:15 +01:00
Jinseong Jeon
ac46ce908f
AA: consider directories with class files when creating a lib module
2022-02-16 22:06:15 +01:00
Mark Punzalan
3f3873dc50
Analysis API: Return KtCallCandidateInfo instead of KtCallInfo in
...
KtCallResolver.collectAllCandidates().
2022-02-11 13:22:58 +01:00
Mark Punzalan
7a1ef25333
Analysis API: Rename resolveCandidates to collectCallCandidates.
...
Didn't bother to rename the directory in the test data.
2022-02-11 13:22:58 +01:00
Mark Punzalan
9b9da94a09
Analysis API: Fix issues related to implicit invoke calls:
...
- Correctly set explicit receiver value.
- Restore original function call from FirImplicitFunctionCall (i.e.,
calls implicitly resolved to `invoke`) to get the correct name for
getting all candidates.
- Collect candidates at all tower levels.
Also make order of candidate calls in tests deterministic.
2022-02-11 13:22:58 +01:00
Mark Punzalan
0ed802bca4
Analysis API: Add tests for KtCallResolver.resolveCandidates().
2022-02-11 13:22:57 +01:00
Mark Punzalan
f62bdf5826
Analysis API: Move AbstractResolveCallTest from fir to components
...
package.
2022-02-11 13:22:57 +01:00
Jinseong Jeon
02cfc8b821
AA: reuse CoreJarFileSystem from KotlinCoreEnvironment
2022-02-09 23:11:45 +01:00
Jinseong Jeon
26e923e3ae
AA: introduce static project structure provider by compiler configuration
...
Also add standalone mode utils to configure Application/Project environments
2022-02-09 23:11:43 +01:00
Mads Ager
a398f7d6cb
Rename kt-reference module to kt-references.
2022-02-07 15:01:24 +01:00
Mads Ager
6f0bb0eda5
Add analysis:kt-reference module and move KtReferences there.
2022-02-07 15:01:23 +01:00
Ilya Kirillov
caddbda01b
Analysis API FIR: introduce library resolve tests
2022-01-31 21:11:56 +01:00
Roman Golyshev
564e408434
KT-50862 Add name property to KtSignature
...
See the KDoc of the property for the reasons why
it was created
2022-01-29 07:42:17 +00:00
Mikhail Glukhikh
ad0d0ca47f
Drop redundant Suppress("RemoveExplicitTypeArguments")
2022-01-26 12:19:55 +00:00
Ilya Kirillov
e1fece6402
Analysis API: fix testdata of reference resolve tests which started to pass
2022-01-21 16:46:28 +01:00
Ilya Kirillov
11c50a48ba
Analysis API: add isSubclassOf tests
2022-01-02 21:56:53 +03:00
Ilya Kirillov
1d6d67d0a1
FIR IDE: regenerate tests
2022-01-02 21:56:51 +03:00
Ilya Kirillov
af789346f5
Analysis API: fix getKtExpressionType for array assignment target
2022-01-02 21:56:49 +03:00
Roman Golyshev
e3219cc5b6
FIR IDE: Avoid resolving elvis operator, because it doesn't make sense
...
There are intrinsics to which elvis operator's usages are resolved;
however, we do not want to expose those intrinsics through the
high-level resolve
2021-12-21 18:48:00 +03:00
Vyacheslav Gerasimov
f7a9065b75
Build: Use intellij maven repo instead of downloaded IDEA
...
#KTI-82
2021-12-16 21:48:23 +03:00
Tianyu Geng
5fbe5981f7
Analysis API: add KtType.isDenotable()
2021-12-15 16:09:31 +03:00
Tianyu Geng
2f393cdd02
FE1.0 Analysis API: get smartcast if available with getKtExpressionType
...
The current implementation still does not work with multicast. In
addition, it appears FE1.0 does not attempt smart cast if it's not used.
2021-12-15 16:09:29 +03:00
Mikhail Glukhikh
e558575aec
Fix FIR bootstrap: add explicit type arguments (see KT-49925)
2021-12-10 08:22:16 +03:00
Tianyu Geng
f197fc93db
Analysis API: add test for KtDiagnosticsProvider
2021-12-09 15:56:52 +03:00
Tianyu Geng
f1bd3597f8
FE1.0 Analysis API: make KtSymbol only reference declaration-site subst-overrides
...
This is the FE1.0 counterpart of fa8bb47bdf
2021-12-09 11:01:52 +01:00
Tianyu Geng
9b05019137
FIR Analysis API: reimplement KtFirCallResolver with new data model
2021-12-06 12:40:43 +01:00
Tianyu Geng
c9f9ce99c1
Analysis API: adapt to KtCall data model change
...
Also add API to check if a `KtFunctionSymbol` is the invoke function on
a Kotlin builtin functional type.
2021-12-06 12:40:42 +01:00
Ilya Kirillov
6e4c87f138
Analysis API: pretty print declarations additionaly to debug rendering in some tests
2021-12-02 20:09:19 +01:00
Ilya Kirillov
bad91915a6
Analysis API: adapt reference resolve tests to changes in renderer
2021-12-02 20:09:19 +01:00
Ilya Kirillov
985c6fa0b8
Analysis API: rework KtSymbol hierarchy
...
- make some symbols to be KtPossiblyMemberSymbols
- introduce KtDeclarationSymbol for declarations
2021-12-02 20:09:19 +01:00