Ilya Kirillov
c95ac9f845
[Analysis API] add some basic tests for symbol substitution
2022-06-22 09:31:42 +02:00
Ilya Kirillov
7b1765cc8b
[Analysis API] introduce base KtTypeScope -> KtScope converter
2022-06-22 09:31:42 +02:00
Ilya Kirillov
c52d33d215
[analysis api] add additional information to the KtCallableSignature
2022-06-22 09:31:41 +02:00
Ilya Kirillov
edb6fc9531
[analysis api] move KtCallableSignature to a separate package
2022-06-22 09:31:41 +02:00
Ilya Kirillov
d4c97a3883
[analysis api] convert KtFunctionLikeSignature/KtVariableLikeSignature to non-data classes
2022-06-22 09:31:40 +02:00
Ilya Kirillov
fdc008e8af
[analysis api] rename KtSignature -> KtCallableSignature
2022-06-22 09:31:40 +02:00
Ilya Kirillov
78c63c082b
[Analysis API] introduce API to work with signatures substitution
2022-06-22 09:31:39 +02:00
Ilya Kirillov
2db73af75e
[analysis api] make KtCallableSymbol to be sealed class
2022-06-22 09:31:39 +02:00
Ilya Kirillov
3033a91567
[analysis api] introduce KtTypeScope which will contain callable signatures
2022-06-22 09:31:38 +02:00
Ilya Kirillov
82a330cf84
[analysis api] move KtScopeNameFilter to separate file
2022-06-22 09:31:37 +02:00
Ilya Kirillov
a10e55cd6a
[analysis api] remove KtClassKind.ENUM_ENTRY as enum entry is not a classifier
2022-06-22 09:31:36 +02:00
Ilya Kirillov
a16a01bf37
[analysis api] fix Analysis API contracts violation
2022-06-22 09:31:36 +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
Mikhail Glukhikh
0ee04d0825
FE10 analysis API: revert resolving 'this' references to receivers
...
FE10 IDE plugin relies on resolving 'this' references to class or callable
2022-06-03 16:25:44 +00: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
Mikhail Glukhikh
c3b5d83f31
FE10 Analysis API: create 17 separate test data files for resolve
2022-05-31 11:34:59 +00:00
Mikhail Glukhikh
a3db2e13b2
FE10 analysis API: render type parameter bounds as FIR does
2022-05-31 11:34:58 +00:00
Mikhail Glukhikh
8cb3081bbd
Analysis API: add KtReference..Provider to fix reference resolve in FE10
2022-05-31 11:34:56 +00:00
Mikhail Glukhikh
f4510773d0
FIR analysis API: add workaround for java.io.Serializable type
2022-05-31 11:34:54 +00:00
Mikhail Glukhikh
446ee943e2
FIR analysis API: fix rendering of Java-based types
2022-05-31 11:34:53 +00:00
Mikhail Glukhikh
564d179cfb
FE10 analysis API: fix flexible type pretty-printing
2022-05-31 11:34:50 +00:00
Stanislav Erokhin
2deb0cc237
FIR/Analysis API: Add KtValueParameterSymbol#generatedPrimaryConstructorProperty
...
This property are used to allow access to the property created from
the primary constructor parameter
2022-05-30 18:39:21 +00:00
Ilya Kirillov
e25dee558f
[Analysis API] make KtDeclarationSymbol <: KtDeclarationSymbol
...
To simplify work with annotations
2022-05-27 16:39:38 +00:00
Ilya Kirillov
f189fd1ff0
[Analysis API] make KtDeclarationSymbol <: KtSymbolWithTypeParameters
...
To simplify work with type parameters
2022-05-27 16:39:37 +00:00
Jiaxiang Chen
8f4554959e
AA: make KtClassifierSymbol a subtype of KtAnnotatedSymbol
2022-05-27 16:39:37 +00:00
Jiaxiang Chen
866ebcfe2e
AA: make KtCallableSymbol a subtype of KtAnnotatedSymbol
2022-05-27 16:39:37 +00:00
Mikhail Glukhikh
133f874351
Fix origin calculation in CliFe10AnalysisFacade
...
After this commit, all tests in
Fe10IdeNormalAnalysisSourceModuleFileScopeTestGenerated pass
2022-05-25 12:04:57 +00:00
Denis.Zharkov
21b86123e8
FIR: Adjust analysis test data after changes in how we load Java types
...
Especially, it's about types based on type parameters
2022-05-19 16:54:05 +00:00
Denis.Zharkov
d7f87e0182
FIR: Adjust analysis test data to changes in loading Java types
2022-05-19 16:54:02 +00:00
Ivan Kylchik
51ccc32a3f
Update test data after introducing IntrinsicConstEvaluation annotation
2022-05-18 21:19:57 +03:00
Ilya Kirillov
7ac001b7bd
[analysis api] fix KDoc for the analyze function
2022-05-12 16:24:24 +02: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
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
61cca31b6b
AA: special handling for converted constants
2022-04-22 18:55:30 +02:00
Jinseong Jeon
faf6939515
AA: showcase strange const evaluation for -1
2022-04-22 18:55:30 +02:00
Jinseong Jeon
889db4cc5d
AA: indicate whether a value parameter is an implicit lambda parameter
...
^KTIJ-18800 In progress
2022-04-21 19:18:25 +02:00
Jinseong Jeon
a74a51b2d9
AA: add tests about resolution of implicit lambda parameter
2022-04-21 19:18:24 +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
3bd892fe82
[analysis api fe10] provide a dummy implementation for KtFe10SymbolContainingDeclarationProvider.getContainingModule
...
to satisfy some tests
2022-04-13 12:53:26 +02:00
Ilya Kirillov
2cd0792e98
[analysis api, tests] actualize testdata with newly added getContainingModule
2022-04-13 12:53:25 +02:00
Ilya Kirillov
16470a2406
[analysis api] provide a function to get containing module for a KtSymbol
2022-04-13 12:53:24 +02:00
Ilya Kirillov
6831bde751
[analysis api fir, tests] update parameter names in testdata
2022-04-13 12:53:18 +02:00
Ilya Kirillov
443ee4c860
[analysis api] allow generating test with for with more possible parameters
2022-04-13 12:52:59 +02:00
Roman Golyshev
32fa2fc476
[FIR] Resolve receiver in qualified expressions with no selector
...
In qualified expression like `foo().`, selector expression is null.
Because of that the whole expression was marked as an error FIR
expression, and `foo()` part was not resolved at all (including
arguments and everything else).
This commit fixes the problem by providing receiver's FIR expression
as an underlying expression for error FIR expression. That way
it will be seen by all resolve transformers and will be successfully
resolved.
^KTIJ-21484 Fixed
2022-04-12 10:55:12 +00:00
Victor Petukhov
27fa632630
[FE 1.0] Update test data with new error type representation
2022-03-23 21:13:33 +00:00
Jinseong Jeon
881a6bed35
AA: add tests about resolution to Java static method
2022-03-22 15:44:50 +01:00