Ilya Kirillov
49f2f85927
[Low Level FIR] fix exception when creating symbol by invalid code
2022-10-04 12:56:07 +00:00
Jinseong Jeon
2fdedf8251
AA FIR: unwrap fake override constructor
2022-10-02 13:39:49 +02:00
Dmitriy Novozhilov
d60f3980b1
[AA LC] Correctly determine override status for accessor methods
2022-09-15 17:27:20 +03:00
Ilya Kirillov
ebc68dc54c
[Analysis API] actualize testdata
2022-08-10 20:37:15 +02:00
Ilya Kirillov
dd00062559
[analysis] introduce KtBuiltinsModule and remove hacks related to the stdlib module search
2022-07-19 17:17:33 +02:00
Ilya Kirillov
3e6de190e7
[Analysis API] update testdata after adding isNoinline/isCrossinline to the KtValueParameterSymbol
2022-07-05 10:34:29 +02:00
Ilya Kirillov
184478858c
[Analysis API] add isNoinline/isCrossinline to the KtValueParameterSymbol
2022-07-05 10:34:29 +02:00
Ilya Kirillov
6a145b52aa
[Analysis API] update testdata after adding context receivers
2022-07-05 10:34:28 +02:00
Ilya Kirillov
8f89f1b368
[Analysis API] add info about context receivers to the Analysis API
2022-07-05 10:34:28 +02:00
Mikhail Glukhikh
2b235e1188
FE10 Analysis API: use compact renderer for flexible types even in debug
2022-06-29 16:50:06 +00:00
Mikhail Glukhikh
38f4a35be2
FIR: introduce flexible types pretty rendering for no arguments case
...
#KT-52020 Fixed
2022-06-29 16:50:05 +00:00
Ilya Kirillov
bb7b34b3a1
[Analysis API] introduce KtSymbolOrigin.SUBSTITUTION_OVERRIDE
...
^KT-52043
2022-06-24 10:41:05 +02:00
Kristoffer Andersen
3af0e57406
[FIR-IDE] Add DestructuringDeclarationEntry to SymbolProvider
2022-06-22 21:20:54 +02:00
Jinseong Jeon
b6371a5b9a
AA/FIR: differentiate dynamic type rendering
2022-06-22 20:14:39 +02:00
Jinseong Jeon
2d52c59bc7
AA: introduce KtDynamicType
2022-06-22 20:14:39 +02: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
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
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
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
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
6831bde751
[analysis api fir, tests] update parameter names in testdata
2022-04-13 12:53:18 +02:00
Victor Petukhov
27fa632630
[FE 1.0] Update test data with new error type representation
2022-03-23 21:13:33 +00:00
Roman Golyshev
8bcdc70adc
FIR IDE: Add IDE tests for sample compiler plugin
2022-02-25 23:08:26 +03:00
Roman Golyshev
9ff46004e4
FIR IDE: Remove typesCache from KtSymbolByFirBuilder
...
This cache wasn't working too well, because ConeTypes have
equals/hashCode implementations which do not account for types'
attributes (like annotations, for example).
Because of that, `String` and `@Annotated String` were considered the
same type, and the cache was remembering whichever came first.
2022-01-27 16:23:44 +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
Roman Golyshev
fa8bb47bdf
[FIR IDE] Add unwrapping substitution overrides which doesn't affect function's signature
...
Also, do not use PSI to restore SUBSTITUTION_OVERRIDE function/property
symbols
2021-11-25 21:19:56 +03:00
Ilya Kirillov
1d1f5ace8f
Analysis API: rename KtCallableSymbol.type -> returnType
2021-11-22 22:47:01 +01:00
Ilya Kirillov
e440c229f6
Analysis API: improve annotations value rendering in DebugSymbolRenderer
2021-11-22 22:47:00 +01:00
Ilya Kirillov
ba918d45a2
Analysis API: introduce KtInitializerValue for initializer of KtPropertySymbol
2021-11-22 22:46:59 +01:00
Ilya Kirillov
fff8eb244c
Analysis API: add annotations to KtTypeAliasSymbol
2021-11-22 22:46:57 +01:00
Ilya Kirillov
bdde70312d
Analysis API: update testdata after removing KtTypeAndAnnotations
2021-11-22 22:46:54 +01:00
Jiaxiang Chen
f8262a2549
implement KtSymbolWithTypeParameters interface for KtPropertySymbol
2021-11-17 18:22:34 +01:00
Ivan Kylchik
c7435ba760
Replace all occurrences of WITH_RUNTIME with WITH_STDLIB
...
We are going to deprecate `WITH_RUNTIME` directive. The main reason
behind this change is that `WITH_STDLIB` directive better describes
its meaning, specifically it will add kotlin stdlib to test's classpath.
2021-11-17 15:26:38 +03:00
Roman Golyshev
13e27a3e06
[FIR IDE] Get rid of KtPossiblyMemberSymbol::dispatchType
2021-11-15 14:36:35 +03:00
Yan Zhulanow
2cdaa48e75
[FIR IDE] Support type annotation rendering in AAPI/FE10
...
This fixes the following tests:
- KtFe10ResolveCallTestGenerated#testVariableAsFunctionWithParameterName()
- KtFe10ResolveCallTestGenerated#testVariableAsFunctionWithParameterNameInNonFunctionType()
- KtFe10ResolveCallTestGenerated#testVariableAsFunctionWithParameterNameGeneric()
- KtFe10ResolveCallTestGenerated#testVariableAsFunctionWithParameterNameMixed()
- KtFe10ResolveCallTestGenerated#testVariableAsFunctionWithParameterNameAnnotation()
2021-11-12 20:09:53 +09:00
Yan Zhulanow
07fb02c1f9
[FIR IDE] Enable symbol-by-psi tests for AAPI/FE10
2021-11-12 20:09:52 +09:00
Yan Zhulanow
bba53aa967
[FIR IDE] Prettify DebugSymbolRenderer, unify its behavior
2021-11-12 20:09:51 +09:00
Yan Zhulanow
8d18fa2d00
[FIR IDE] Ensure prefixed test output file differs from the default one
2021-11-12 20:09:50 +09:00
Yan Zhulanow
1e4e45cc5f
[FIR IDE] Render error class types identically in DebugSymbolRenderer
...
This commit fixes KtFe10SymbolByPsiTestGenerated.testVarargFunctions().
2021-11-12 20:09:50 +09:00
Jinseong Jeon
b52912162f
FIR IDE: API to indicate delegated property
2021-10-27 17:06:30 +02:00
Yan Zhulanow
e06a75c197
[FIR IDE] Add separate test data for descriptor-based Analysis API implementation
2021-10-20 19:41:26 +03:00