Dmitrii Gridin
a8ded36ac4
[K2 AA] FirAnnotationValueConverter: cleanup code
...
^KT-54311
2022-10-17 14:59:49 +00:00
Dmitrii Gridin
b15cf05e59
[K2 AA] add hack to fix symbolKind for local class
...
^KT-54311
^KT-54390
2022-10-17 14:59:48 +00:00
Dmitrii Gridin
f7568cef5c
[K2 AA] fix symbolKind for nested local classes
...
^KT-54311
2022-10-17 14:59:48 +00:00
Dmitrii Gridin
027899a22a
[K2 AA] add missing receiverType for getter and setter
...
^KT-54311
2022-10-17 14:59:48 +00:00
Dmitrii Gridin
728e1941ac
[K2] FirIdeRenderer: fix render for setter parameter annotations
...
^KT-54311
2022-10-17 14:59:47 +00:00
Dmitrii Gridin
2d240d2925
[AA] add test on property annotations
...
^KT-54311
2022-10-17 14:59:46 +00:00
Dmitrii Gridin
01d5a5bc5b
[AA] support @JvmField in KtSymbolInfoProvider
...
^KT-54311
^KT-54360 Fixed
2022-10-17 14:59:46 +00:00
Dmitrii Gridin
f4ae696aee
[AA] more tests for file scope
...
^KT-54311
2022-10-17 14:59:46 +00:00
Dmitrii Gridin
317408e780
[AA] update tests on delegated property
...
^KT-54311
2022-10-17 14:59:45 +00:00
Dmitrii Gridin
3c2e0cb3b9
[K2] KtFirClassInitializerSymbol: implement psi-based pointer
...
^KT-54311
2022-10-17 14:59:44 +00:00
Dmitrii Gridin
5d2869b099
[K2] KtFirPropertySetterSymbol: cleanup code
...
^KT-54311
2022-10-17 14:59:43 +00:00
Dmitrii Gridin
2256cd83ce
[K2] KtFirPropertyGetterSymbol: cleanup code
...
^KT-54311
2022-10-17 14:59:43 +00:00
Dmitrii Gridin
a0b814a1b6
[FIR] make FirPropertyAccessor#propertySymbol non-nullable
...
we need it to restore property accessor by property
^KT-54311
2022-10-17 14:59:42 +00:00
vladislav.grechko
817afcd4af
KT-MR-7307 review fixes
2022-10-13 15:19:10 +00:00
vladislav.grechko
e0c8142106
Support of custom 'equals' and 'hashCode' in inline classes
...
'equals' from any made available for overriding in inline classes
'typed' equals made available for definition in inline classes
'typed' equals definition made compulsory if 'untyped' is overridden
'operator' keyword is allowed in 'typed' equals definition
^KT-24874: Fixed
2022-10-10 16:52:34 +00:00
Nikolay Lunyak
b6f950ed75
[FIR][FE 1.0] KT-47933: Warn about redundant @Repeatable
...
Merge-request: KT-MR-7318
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com >
2022-10-07 13:33:49 +00:00
Ilya Kirillov
457069090b
[Analysis API FIR] fix LLFirResolveSession creation for KtNotUnderContentRootModule
2022-10-05 15:53:54 +00:00
Ilya Kirillov
4de311f671
[Analysis API FIR] remove unused CachingKtAnalysisSessionProvider.getFirResolveSession(KtSymbol)
2022-10-05 15:53:53 +00:00
Ilya Kirillov
b68532a316
[Analysis API FIR] fix memory leaks via KtAnalysisSessionCache keys
2022-10-05 15:53:53 +00:00
Kristoffer Andersen
f765457e51
[K2] isUsedAsExpression analysis
2022-10-05 15:06:52 +00:00
Ilya Kirillov
49f2f85927
[Low Level FIR] fix exception when creating symbol by invalid code
2022-10-04 12:56:07 +00:00
Ilya Kirillov
81c52e6886
[Analysis API FIR] fix call resolution on error elements
2022-10-03 16:02:23 +02:00
Ilya Kirillov
ab3f916f3f
[Analysis API FIR] fix call resolution of non-resolvable elements
2022-10-03 16:02:23 +02:00
Dmitriy Novozhilov
c0ad67c4f9
[FIR] Generate java declarations for record components of java records
...
^KT-53964 Fixed
2022-10-03 15:48:17 +03:00
Jinseong Jeon
2fdedf8251
AA FIR: unwrap fake override constructor
2022-10-02 13:39:49 +02:00
Ilya Kirillov
4ae1cb74dd
[Analysis API FIR] fix constant evaluation for incomplete call when compiler produces IntegerLiteralType
...
^KTIJ-21531 fixed
2022-09-30 12:19:51 +02:00
Nikolay Lunyak
f578381726
[FIR] KT-46483: Forbid annotations in where Clauses
...
Merge-request: KT-MR-7208
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru >
2022-09-28 13:38:18 +00:00
Jinseong Jeon
dd7fc7f4ae
AA FIR: avoid unsafe argument retrieval during const evaluation
2022-09-18 17:22:02 +02:00
Jinseong Jeon
efb867b46c
AA: do not create symbol pointers for (intersection|substitution) overridden members
2022-09-17 16:43:12 +02:00
Dmitriy Novozhilov
a88fdd5eb7
[AA LC] Implement default values for methods of annotations
2022-09-15 17:27:21 +03:00
Dmitriy Novozhilov
d60f3980b1
[AA LC] Correctly determine override status for accessor methods
2022-09-15 17:27:20 +03:00
Dmitriy Novozhilov
0909cad886
Reformat FirAnnotationValueConverter.kt
2022-09-15 17:27:20 +03:00
Jinseong Jeon
1464f33c5d
AA FIR: error annotation value for erroneous argument in class reference
2022-09-15 12:36:31 +02:00
Ilya Kirillov
447404f955
[Analysis API FIR] reformat KtFirSymbolProvider.kt
2022-09-15 12:12:41 +02:00
Ilya Kirillov
7d47651353
[Analysis API] rename KtAnnotationsList.containsAnnotation -> hasAnnotation
2022-09-15 12:12:40 +02:00
Ilya Kirillov
1bdde25dc7
[Analysis API] improve getClassOrObjectSymbolByClassId/getTopLevelCallableSymbols
...
add kdocs, use better names
2022-09-15 12:12:40 +02:00
Jinseong Jeon
217829d1c6
AA: fix typo in property name
2022-09-14 13:03:30 +02:00
Jinseong Jeon
836b6dae9f
AA FIR: constant evaluation for String
2022-09-14 12:52:08 +02:00
Jinseong Jeon
68519af97a
AA: add tests about platform types
...
...as declaration return type or expression type
2022-09-09 15:02:23 +02:00
Vladimir Sukharev
c8864369fd
Use main class as test generator name
...
Merge-request: KT-MR-7031
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2022-09-09 12:51:18 +00:00
Dmitriy Novozhilov
194741b96b
[FIR] Remove incorrect FirClassSymbol<*>.superConeTypes utility
...
Replace all usages with member `FirClassSymbol.resolvedSuperTypes`
2022-09-07 07:57:37 +00:00
Nikolay Lunyak
3d9c77efa8
[FIR] Add DNN checks
...
Merge-request: KT-MR-7000
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru >
2022-09-01 14:25:07 +00:00
Roman Golyshev
bb2bee74cf
[HL API] Fix FE10 implementation of KtExpressionTypeProvider
2022-09-01 13:57:03 +00:00
Nikita Bobko
2a4f3f41aa
2/5 Replace source dependency on kotlin-reflect with binary dependency
...
Review: https://jetbrains.team/p/kt/reviews/6753
Meaningful semantic change was splitted into 5 commits to simplify the
change review. Sinle commit would be too big.
Why replace source to binary: to get rid of kotlin-reflect in Kotlin
plugin artifact KTIJ-22276
Note: Kotlin Maven artifacts (./gradlew publish) changed their
dependency on kotlin-reflect
2022-08-22 15:43:49 +02:00
Nikita Bobko
8f79e833a8
Drop all redundant kotlin-reflect, kotlin-reflect-api dependencies
...
Review: https://jetbrains.team/p/kt/reviews/6753
All redundant I managed to find, of course.
Why: I'm going to process all reflect dependencies in the next commits.
Cleanup reflect dependency before processing.
They are redundant because:
1. if `compileOnly` then compilation didn't break after dropping the
dependency
2. if `test*` then tests didn't break after dropping the dependency.
3. `analysis/analysis-api-fir/analysis-api-fir-generator/build.gradle.kts`
`compiler/fir/checkers/checkers-component-generator/build.gradle.kts`
Drop `implementation(project(":kotlin-reflect-api"))` because the
module already depends on
`implementation(project(":kotlin-reflect"))`
4. `compiler/daemon/daemon-client/build.gradle.kts`. Drop `runtimeOnly`
because after dropping `compileOnly` compilation didn't break (so
`runtimeOnly` looks suspicious). Less safe than 1-3
2022-08-22 15:42:57 +02:00
Jinseong Jeon
79686ba242
AA FE1.0: don't return psi for fake overrides
2022-08-20 00:50:10 +02:00
Jinseong Jeon
25f7554a31
AA FIR: constant evaluation for Java field
2022-08-20 00:50:09 +02:00
Dmitriy Novozhilov
bb38690273
[FIR] Introduce FirAssignExpressionAltererExtension
...
This extension can be used to override resolution of assign statements
with custom statement
2022-08-19 07:44:09 +00:00
Arseniy Terekhov
25fc948d95
[FIR] DeprecationsProvider: make evaluation of deprecations on demand
2022-08-19 07:37:54 +00:00
Simon Ogorodnik
513af2dfbc
FIR. Refactor smart-cast representation in FIR tree
...
Make smart-casts non-transparent expression without delegation
to underlying FirQualifiedAccessExpression, as children delegation in
fir tree has unclear semantics
Remove two different kinds of tree nodes for smart-casts
2022-08-15 21:46:11 +00:00