Dmitrii Gridin
8bbe60e96c
[AA] add more tests on companion members
2022-12-20 19:52:13 +00:00
Dmitrii Gridin
643b74fa28
[AA FIR] support symbol pointers for static properties
...
^KT-55487
2022-12-20 19:52:12 +00:00
Dmitrii Gridin
e476150025
[AA FIR] support symbol restoring for static members
...
^KT-55487 Fixed
2022-12-20 19:52:10 +00:00
Steven Schäfer
6af616d3c3
FIR: make declarations marked with 'override' implicitly open
...
#KT-52236 Fixed
2022-12-14 21:46:41 +00:00
Ilya Kirillov
68a17242b3
[FIR] fix NPE on missing java annotations qualifier
...
^KTIJ-23075 fixed
2022-12-14 09:58:07 +00:00
Marco Pennekamp
2cd16f055a
[AA] KT-55098 Render context receivers in declarations & function types
...
- `context(...)` is a modifier that must precede annotations and other
modifiers, so for declarations it is rendered in
`renderAnnotationsAndModifiers`.
- Ignore `@ContextFunctionTypeParams` in the annotation list of FE10
types, as the annotation is an implementation detail of context
receivers in K1 and shouldn't be rendered.
^KT-55098 fixed
2022-12-06 17:43:30 +00:00
Ilya Kirillov
5477e2073f
[Analysis API] fix typo in testdata filenames
2022-12-05 17:27:43 +01:00
Nikita Bobko
5be153cd65
2/2 analysis-api: Initial implementation for contracts
...
Review: https://jetbrains.team/p/kt/reviews/7652
Put this change into a separate commit because:
1. The change is boring and clutters the diff of the first commit
2. The first commits is already too big
2022-12-01 14:42:49 +01:00
Nikita Bobko
b2397f033b
1/2 analysis-api: Initial implementation for contracts
...
Review: https://jetbrains.team/p/kt/reviews/7652
I need this API for KTIJ-22692
2022-12-01 14:42:49 +01:00
Dmitrii Gridin
cb8cc65fb8
[AA Fe10] update testData
...
org.jetbrains.kotlin.analysis.api.fe10.test.cases.generated.cases.symbols.Fe10IdeNormalAnalysisSourceModuleSymbolByFqNameTestGenerated.testKclass
2022-11-25 15:33:58 +01:00
Dmitrii Gridin
e684607e9d
[AA] FirCallableSignature: add test on type alias
...
^KT-54826
2022-11-24 18:32:45 +00:00
Dmitrii Gridin
dfc59d5d07
[AA FIR] support symbol pointer restore for value parameter from delegated setter
...
^KT-54051
2022-11-24 18:32:44 +00:00
Dmitrii Gridin
55ca2d608b
[AA] AbstractSymbolTest: add check for parameters
...
^KT-54826
2022-11-24 18:32:44 +00:00
Dmitrii Gridin
1222d18b3d
[AA Fe10] fix StackOverflowError from KtFe10PsiClassInitializerSymbol
...
^KT-54826
2022-11-24 18:32:44 +00:00
Dmitrii Gridin
2155a23e4e
[AA FIR] implement FirCallableSignature to simplify search by signature
...
^KT-54826 Fixed
2022-11-24 18:32:43 +00:00
Dmitrii Gridin
48e2e5cc87
[AA] AbstractSymbolTest: add type parameters check
...
^KT-54826
2022-11-24 18:32:43 +00:00
Anna Kozlova
43bd05f470
[LL FIR] make dependency from library on builtins invisible from outside
...
^KTIJ-23421
hide explicit builtins to reveal target platform dependencies.
Otherwise, `expect` class from builtin of e.g. JDK
would be found instead of actual dependency from Kotlin Runtime
2022-11-23 10:46:49 +00:00
Ilya Kirillov
f775778efa
[Analysis API FIR] fix containing declaration for value parameter
...
now it should also work for non-source declarations
2022-11-22 18:25:30 +01:00
Anna Kozlova
1906a41d9a
fix testdata after merge
2022-11-22 13:31:41 +01:00
Anna Kozlova
702d0b4d54
[compiler] missed type parameters in local properties (KTIJ-23583)
...
even though local variables won't contain type parameters,
let's build fir for them
2022-11-22 10:47:45 +00:00
Nikolay Lunyak
fb09f139dd
[FIR] Unmute receiver annotations tests
...
These tests were muted in 89f8821d . Seems they began to work after the
introduction of `FirReceiverParameter` in KT-54417.
2022-11-21 08:51:43 +00:00
Dmitrii Gridin
a0f4c674f5
[AA] KtCallableReceiverRenderer: add annotations renderer
...
^KT-54417
2022-11-17 09:50:19 +00:00
Dmitrii Gridin
032026278c
fix compilation and testData after rebase
...
^KT-54417
2022-11-17 09:50:17 +00:00
Dmitrii Gridin
1ebfbc0ee9
[AA] KtCallableSymbol: rename receiver to receiverParameter
...
^KT-54417
2022-11-17 09:50:12 +00:00
Dmitrii Gridin
2741052db3
[AA] integrate KtReceiverParameterSymbol to KtCallableSymbol
...
^KT-54417
2022-11-17 09:50:10 +00:00
Dmitrii Gridin
37d688ae83
[AA] introduce FirReceiverParameter
...
^KT-54417
2022-11-17 09:50:09 +00:00
Dmitrii Gridin
be7d282974
[FIR] introduce FirReceiverParameter
...
^KT-54417
2022-11-17 09:50:09 +00:00
Dmitrii Gridin
36f9a8b7b8
[AA] fix symbol pointer for setter
...
^KT-54311
2022-11-15 21:37:27 +00:00
Nikolay Lunyak
89f8821d0a
[FIR] KT-53371, KT-53519: Fix annotations arguments mapping
...
See: compiler/testData/asJava/lightClasses/
AnnotatedParameterInInnerClassConstructor.kt
The muted tests don't work with the (KT-53371, KT-53519)-related
changes. During this test happens an attempt to access unresolved
annotations via CustomAnnotationTypeAttribute.
Discussion: KTIJ-23547
2022-11-14 22:40:41 +02:00
Dmitrii Gridin
bbe1aa61af
[AA FIR] support symbol pointer for property from constructor
...
^KT-54311
^KT-54311
2022-11-11 14:34:52 +00:00
Dmitrii Gridin
fe93f49ff7
[AA] KtPsiBasedSymbolPointer: add class type check
...
^KT-54311
2022-11-11 14:34:51 +00:00
Ilya Kirillov
4b7cacd55e
[FIR] do not ignore nested type aliases in FirNestedClassifierScope
2022-11-11 12:00:01 +01:00
Ilya Kirillov
26ec7ec296
[Analysis API] update testdata after renderer rework
...
The new testdata seems to be more correct or just different
^KTIJ-23268
2022-11-11 11:59:59 +01:00
Ilya Kirillov
068168bc3c
[fir] change setter parameter name to value
2022-11-11 11:59:56 +01:00
Dmitrii Gridin
638eccac16
[AA K2] add missing resolve for signature creation
...
^KT-54311
2022-11-10 06:39:23 +00:00
Dmitrii Gridin
202a022b49
[AA K2] implement symbol pointers for value parameters
...
^KT-54311
2022-11-10 06:39:23 +00:00
Dmitrii Gridin
043e3e6840
[AA K2] implement symbol pointers for receiver parameter
...
^KT-54311
2022-11-10 06:39:23 +00:00
Dmitrii Gridin
48f7cdfaa1
[AA K2] implement symbol pointers for property accessors
...
^KT-54311
2022-11-10 06:39:22 +00:00
Dmitrii Gridin
42f8e6fbe6
[AA] add more tests on java field symbols
...
^KT-54311
2022-11-10 06:39:20 +00:00
Dmitrii Gridin
897a5b085d
[AA K2] implement symbol pointers for enum entry members without psi
...
^KT-54311
2022-11-10 06:39:19 +00:00
Dmitrii Gridin
c6a3ca86eb
[AA K2] symbol pointers: add tests on enum entry
...
^KT-54311
2022-11-10 06:39:19 +00:00
Dmitrii Gridin
9b6e9e2dd1
[AA K2] implement symbol pointers for type parameters
...
^KT-54311
2022-11-10 06:39:17 +00:00
Dmitrii Gridin
47c9618b79
[AA K2] implement symbol pointers for type aliases
...
^KT-54311
2022-11-10 06:39:17 +00:00
Dmitrii Gridin
0808f4e233
[AA K2] implement symbol pointers for classes and objects
...
^KT-54311
2022-11-10 06:39:16 +00:00
Dmitrii Gridin
f86c9be733
[AA K2] implement symbol pointer for top level properties
...
^KT-54311
2022-11-10 06:39:15 +00:00
Dmitrii Gridin
4bd604f2ed
[AA] check symbol pointer restoring without psi anchor
...
^KT-54311
2022-11-10 06:39:14 +00:00
Ilya Kirillov
7766362ff1
[Analysis API] render full symbol in generatedPrimaryConstructorProperty in DebugSymbolRenderer
2022-10-26 19:19:04 +00:00
Ilya Kirillov
f5432127d1
[Analysis API FE1.0] fix containing module for some cases
2022-10-26 19:19:03 +00:00
Ilya Kirillov
4bb32f4634
[Analysis API] render extra debug information for nested symbols if renders for outers
2022-10-26 19:19:02 +00:00
Ilya Kirillov
85effcc1b3
[Analysis API] do not fully print property symbols in tests
2022-10-26 19:19:02 +00:00