Jinseong Jeon
7f6cad6fb3
FIR: ensure STATUS resolve phase before reading valueClassRepresentation
2022-11-02 18:04:38 +01:00
Jinseong Jeon
542ca68aba
AA: add test about PsiType for @JvmInline value class
2022-11-02 18:04:38 +01:00
Jinseong Jeon
c9a2e10dd7
AA: merge single/multi modules tests for PsiTypeProvider
...
...because single-module test is also multi-module test
2022-11-02 17:38:16 +01:00
Jinseong Jeon
d98081dce2
AA: introduce MPP tests for PsiTypeProvider
2022-11-02 17:38:16 +01:00
Jinseong Jeon
dc7506c40a
AA: utilize logic in PsiTypeProvider test
...
...to reuse them in upcoming multi-module tests
2022-11-02 17:38:15 +01:00
Jinseong Jeon
5bca3c6841
AA: rename test api for better clarification
...
Many sub tests are implementing the same name, doTestByFileStructure,
which indeed are based on the list of KtFile in a single module.
Rather, this one should be named after "ModuleStructure".
2022-11-02 17:38:15 +01:00
Roman Golyshev
c3031ccff5
[Analysis API] Use smart pointer to hold onto KtFile in ShortenCommand
...
It's a better approach, considering that we already
keep all the PSI element via smart pointers
2022-11-02 14:23:21 +00:00
Denis.Zharkov
82100a414f
FIR: Preserve K1 behavior for rawTypeValue ?: nothingTypedValue
...
It's been approximated to the non-raw version back then
^KT-54526 Fixed
2022-10-31 14:28:56 +00:00
Denis.Zharkov
52eb535a7d
FIR: Use platform specific overridability rules for platform members
...
^KT-54570 Fixed
2022-10-31 14:28:55 +00:00
Denis.Zharkov
1e368bcd86
FIR: Allow to skip specifying type arguments for members from raw type
...
^KT-54666 Fixed
^KT-54526 Related
2022-10-31 14:28:54 +00:00
Denis.Zharkov
c0e0900344
FIR: Preserve K1 behavior for synthetic properties on raw type
...
^KT-54502 Fixed
2022-10-31 14:28:53 +00:00
Denis.Zharkov
5cc31114cd
FIR: Support special scope for raw types
...
^KT-46369 Fixed
^KT-41794 Fixed
^KT-49351 Fixed
2022-10-31 14:28:50 +00:00
Pavel Mikhailovskii
1215ae0fe7
KT-1436 Nicer compiler errors when the feature isn't supported
2022-10-31 13:49:57 +00:00
Jinseong Jeon
8d8d0d9922
SLC: add marker interface for collection inheritor
2022-10-27 14:41:24 +02:00
Dmitriy Novozhilov
bc9bc26cc8
[Test] Add test for KT-54668
2022-10-27 11:08:56 +00:00
Dmitriy Novozhilov
6bc952adff
[Test] Add test for KT-54663
2022-10-27 11:08:56 +00:00
Dmitriy Novozhilov
1927369ae9
[Test] Add test for KT-54662
2022-10-27 11:08:55 +00:00
aleksandrina-streltsova
29502ba126
[Analysis API FIR] add check for public api
2022-10-27 06:22:37 +00:00
Ilya Kirillov
7766362ff1
[Analysis API] render full symbol in generatedPrimaryConstructorProperty in DebugSymbolRenderer
2022-10-26 19:19:04 +00:00
Ilya Kirillov
e2416f48fe
[Analysis API] add tests for containing declaration for delegated member scope
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
59beeb36be
[Analysis API FE1.0] fix "descriptor not found" exception on getting dispatch receiver type
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
Ilya Kirillov
3bc19fa2c7
[Analysis API] change return type of KtScope.getAllSymbols to KtDeclaration symbol as it always returns callable or classifier
2022-10-26 19:19:02 +00:00
Ilya Kirillov
98e665a652
[Analysis API] fix symbol kind for KtTypeAliasSymbol
...
they can be non-toplevel
2022-10-26 19:19:01 +00:00
Ilya Kirillov
3ea29e42b9
[Analysis API] consider KtClassInitializerSymbol to be KtDeclarationSymbol
2022-10-26 19:19:01 +00:00
Ilya Kirillov
97df0a0902
[Analysis API] rework containing declaration provider
...
now it should work for non-source declarations
2022-10-26 19:19:00 +00:00
Mikhail Glukhikh
8e48636b29
K1: don't report assignment TYPE_MISMATCH in BI under feature ON
...
Related to KT-54004
2022-10-26 09:21:48 +00:00
Mikhail Glukhikh
80fa765333
K1: introduce synthetic assignment checker with deprecation for KT-54305
...
#KT-54305 Fixed
Related to KT-54309
2022-10-25 12:33:09 +00:00
Mikhail Glukhikh
7bd512fbb3
FE: add test for KT-54305
2022-10-25 12:33:08 +00:00
Johan Bay
9f3d8130db
Remove unnecessary deprecation annotation
...
Private members on private companion objects have proper visibility
so there is no need for the @Deprecated annotation.
^KT-54539 Fixed
2022-10-25 14:03:11 +02:00
Jinseong Jeon
14213ddad2
AA: fix expected type for lambda with explicit label
2022-10-24 22:07:05 +02:00
Ivan Kylchik
5b16b2c71e
Properly verify args in string concatenation expression for interpreter
...
If string concatenation contains object value, then this argument
will not have explicit toString call. We must find and check toString
method manually.
#KT-54615
2022-10-24 13:14:16 +00:00
Mikhail Glukhikh
5347c3c7cc
FE: add test for KT-53408 to have stable behavior here
2022-10-20 13:27:04 +02:00
Jinseong Jeon
dbf0ba442a
(U|S)LC: fix getText for modifier list / accessor
2022-10-19 14:17:36 +02:00
Jinseong Jeon
e1344968ec
(S|U)LC: fix getTextOffset and getTextRange for modifier list of accessors
...
in a similar way 36e1149e did for property accessors
2022-10-19 14:17:36 +02:00
Jinseong Jeon
19151fa866
SLC: fix getTextOffsets and getTextRange for accessors
...
Same idea from LC fix at 36e1149e
2022-10-19 14:17:36 +02:00
Jinseong Jeon
ae437716d6
SLC: remove unnecessary overridden kotlinOrigin for accessor
...
Same as the declaration in the base class SymbolLightMemberBase
2022-10-19 14:17:36 +02:00
Dmitriy Novozhilov
8fbb605034
[FIR] Rename containingClass function to containingClassLookupTag
...
Since this function returns lookup tag instead of FirClass or symbol
the old name may lead to misunderstanding
2022-10-19 11:09:34 +00:00
Dmitriy Novozhilov
fa9f0bcf84
[FIR] Ignore CFA-only edges in DFA even if they are dead
...
^KT-53920 Fixed
2022-10-19 11:09:33 +00:00
Dmitriy Novozhilov
55aae5325c
[Test] Add test for KT-54209
2022-10-19 11:09:32 +00:00
Dmitriy Novozhilov
5665139865
[Test] Add test for KT-54125
2022-10-19 11:09:31 +00:00
Dmitrii Gridin
3c43416042
[AA] add more tests on property accessors
...
^KT-54311
2022-10-17 14:59:52 +00:00
Dmitrii Gridin
6bf1cefba6
[AA] do not render redundant declarations for AbstractSymbolByPsiTest
...
^KT-54311
2022-10-17 14:59:52 +00:00
Dmitrii Gridin
a38e1747c3
[AA] split some SymbolByPsi tests on SingleSymbolByPsi to avoid redundant declarations
...
^KT-54311
2022-10-17 14:59:52 +00:00
Dmitrii Gridin
804a92546c
[AA] AbstractSingleSymbolByPsi: search elements by caret instead of expression
...
^KT-54311
2022-10-17 14:59:51 +00:00
Dmitrii Gridin
588c0bbb03
[AA] KtPsiBasedSymbolPointer: drop redundant comments
...
^KT-54311
2022-10-17 14:59:51 +00:00
Dmitrii Gridin
f7bd79a151
[AA K2] KtFirSymbolInfoProvider: add restriction on fir under fir symbol
...
^KT-54311
^KT-54360
2022-10-17 14:59:51 +00:00
Dmitrii Gridin
3c9fb5db27
[AA] make consistent hasStableParameterNames for setter and getter
...
^KT-54311
2022-10-17 14:59:50 +00:00