Tianyu Geng
1c8d1fcdba
FIR Tree: make FirDefaultPropertyAccessor propagate dispatchReceiverType
...
Custom property accessor has this property set and hence it make sense
for the default accessor to have it too. Also, FE1.0's counterpart
has this bit set and it's returned through the analysis API.
2021-11-15 11:10:46 +03:00
Ilya Kirillov
540bbc6bef
Analysis API: temporary update descriptors testdata
2021-11-12 23:19:41 +01:00
Tianyu Geng
a8ae704c0c
FIR IDE: fix property accessor resolution
...
For property access with implicit receiver, the resolved fir is a
FirPropertyAccessExpression and hence we need to handle it in
KtFirCallResolver.
2021-11-12 21:56:46 +01:00
Yan Zhulanow
9106a4bbc5
[FIR IDE] Enable call resolution tests in AAPI/FE10
...
Fix numerous cases in Fe10KtCallResolver so the tests pass correctly.
2021-11-12 20:09:53 +09:00
Yan Zhulanow
e06a75c197
[FIR IDE] Add separate test data for descriptor-based Analysis API implementation
2021-10-20 19:41:26 +03:00
Yan Zhulanow
1272c6aa33
[FIR IDE] Update Analysis API test data, untie it from the FIR implementation
2021-10-20 19:41:25 +03:00
Mark Punzalan
167dc81d3b
FIR/Analysis API: Get parameter name from function type notation or
...
`@ParameterName` annotation, which is also now added during type
resolution.
2021-10-15 16:19:00 +03:00
Mark Punzalan
56cc40f639
FIR: Rename SAM constructor parameter name from "block" to "function".
...
This matches FE 1.0 (see
core/descriptors/src/org/jetbrains/kotlin/resolve/sam/samConstructorUtils.kt).
2021-10-04 19:38:44 +03:00
Mark Punzalan
d16454b9af
FIR: Set resolve phase to BODY_RESOLVE for SAM constructor value
...
parameters.
This was causing exceptions with analysis API trying to resolve the
synthetic FirValueParameter because it could not find a KtDeclaration
for it. Using BODY_RESOLVE should be safe; the SAM constructor function
is also on BODY_RESOLVE and the type of the value parameter is known.
2021-10-04 19:38:43 +03:00
Jinseong Jeon
8f3b06ac06
RAW FIR: record annotations on destructuring declarations
2021-10-01 18:54:16 +03:00
Jinseong Jeon
464eecef03
FIR IDE: add more tests about annotation resolution
2021-10-01 18:54:14 +03:00
Jinseong Jeon
744961bd00
FIR IDE: test resolution of various annotation values
2021-09-23 00:11:25 +02:00
Tianyu Geng
9ca8d39240
FIR IDE: use KtVariableWithInvokeFunctionCall for extension invoke
2021-09-17 17:27:53 +02:00
Tianyu Geng
d2ed203528
FIR IDE: Add substitutor to KtCall
2021-09-17 17:27:52 +02:00
Jinseong Jeon
35409fdb8d
FIR IDE: resolve arrayOf calls in annotations
2021-09-15 22:33:20 +02:00
Ilya Kirillov
42f0536904
FIR IDE: move analysis api fir testdata to the analysis directory
2021-09-15 11:32:43 +02:00