Dmitrii Gridin
1ba81fca57
[Analysis API] add tests on incomplete function type parameter symbol
...
^KT-65858 Obsolete
2024-03-06 16:09:43 +00:00
Jinseong Jeon
f5d2ce3022
AA: render containing file and JvmClassName
2023-12-21 15:34:34 +00:00
Alexander Kuznetsov
e048d49bf0
[Analysis API] fe10: count value classes in isInline
...
#KT-63771 fixed
Merge-request: KT-MR-13220
Merged-by: Alexander Kuznetsov <Aleksander.Kuznetsov@jetbrains.com >
2023-12-01 17:33:30 +00:00
Ilya Kirillov
8ad5a48b98
[Analysis API] introduce KtDestructuringDeclarationSymbol to represent a destructuring declaration
...
Mainly needed to avoid "Cannot build symbol for KtDestructuringDeclaration" from `KtSymbolProvider.getSymbol` on `KtDestructuringDeclaration`.
2023-08-17 13:01:02 +00:00
Ilya Kirillov
c963eadb44
[Analysis API FIR] fix KtSymbol creation for _ destructuring parameter
...
We need to have a corresponding declaration in the FIR tree,
so we can create a symbol for it
^KT-60904 fixed
^KT-60904 fixed
2023-08-17 13:01:02 +00:00
aleksandrina-streltsova
1c472c2751
[AA] update test data after adding properties to callable symbols
...
KT-54846
2023-07-24 17:24:42 +00:00
aleksandrina-streltsova
52a95cb75f
[AA] update test data after adding properties to KtClassLikeSymbol
...
KT-54846
2023-07-24 17:24:41 +00:00
Alexander Udalov
40c628d431
FIR: fix order of property accessor annotations
...
#KT-57219 Fixed
2023-05-22 20:12:29 +00:00
Mikhail Glukhikh
156be26982
AA: use full rendering of backing field symbols
2023-04-25 12:18:27 +00:00
Mikhail Glukhikh
1f05ce2e01
AA/LC: Support annotation property->backing field move
...
#KT-57462 Fixed
2023-04-25 12:18:27 +00:00
Dmitrii Gridin
6b3e49e824
[AA FIR] correctly restore declaration with annotation with argument inside some type from symbol pointer
...
ConeAttributes can have some non-stable info, so we shouldn't render it
Also reduce resolve from IMPLICIT_TYPES_BODY_RESOLVE to TYPES where it is possible
^KT-58141 Fixed
2023-04-21 17:21:36 +00:00
Ting-Yuan Huang
42b08d411b
[FIR] Pass container when creating FunctionType
...
so that it can be resolved when type annotations are demanded.
2023-02-08 19:43:24 +00:00
Dmitrii Gridin
72d8fa216a
[AA] DebugSymbolRenderer: move annotations and type arguments renderer befor type to avoid resolve race
...
^KT-56046
2023-02-03 19:48:56 +00:00
Dmitrii Gridin
d13ad454da
[AA FIR] fix nested type annotations lazy resolve
...
^KT-56046
2023-02-03 19:48:56 +00:00
Dmitrii Gridin
1e2d517c21
[AA] DebugSymbolRenderer: improve type render
...
to process all nested annotations and types
^KT-56046
2023-02-03 19:48:55 +00:00
Justin Paupore
3e80433356
[AA] Add stub annotationApplicableTargets extension.
...
Introduce an extension method to retrieve the set of applicable targets
for an annotation, given the annotation class's symbol.
This extension on `KtSymbolInfoProvider` causes a large amount of churn
in test data files, so this change starts off by introducing the
property and always making it return null. A future change will
introduce the actual behavior change, and will include the testdata
changes for the few tests that actually return useful data for this
property.
2023-01-24 14:39:54 +01:00
Dmitrii Gridin
7f24a38997
[FIR] FirTypeResolveTransformer: support lazy type annotations for all declarations
...
^KTIJ-23547
^KTIJ-24141
2023-01-19 10:53:04 +00:00
Dmitrii Gridin
73cdaf5c3c
[FIR] CustomAnnotationTypeAttribute: support type aliases
...
^KTIJ-23547
^KTIJ-24141
2023-01-19 10:53:03 +00:00
Dmitrii Gridin
09a77d261d
[AA] KtTypeInfoProvider: introduce fullyExpandedType extension
...
^KTIJ-23547
^KTIJ-24141
2023-01-19 10:53:03 +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
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
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
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
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
48f7cdfaa1
[AA K2] implement symbol pointers for property accessors
...
^KT-54311
2022-11-10 06:39:22 +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
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
Dmitrii Gridin
3c43416042
[AA] add more tests on property accessors
...
^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
Ilya Kirillov
49f2f85927
[Low Level FIR] fix exception when creating symbol by invalid code
2022-10-04 12:56:07 +00:00