[AA] delegate to resolveToFirSymbol to avoid decompilation
`getReturnTypeForKtDeclaration` is called by UAST on probably compiled declarations. In order to avoid redundant decompilation + building raw FIR + resolve, let's delegate to deserialized FIR which is already prepared in stubs Fixes KTIJ-24810 When `findSourceNonLocalFirDeclaration` is called on non-physical property accessor e.g., during completion, then traverse tree should allow drilling into FirProperty; otherwise, no FIR would be found
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
fun foo() {
|
||||
val f = fun<caret>(it: String) {}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
annotationsList: []
|
||||
classId: kotlin/Unit
|
||||
classSymbol: KtNamedClassOrObjectSymbol(kotlin/Unit)
|
||||
nullability: NON_NULLABLE
|
||||
ownTypeArguments: []
|
||||
qualifiers: [
|
||||
qualifier:
|
||||
name: Unit
|
||||
symbol: KtNamedClassOrObjectSymbol(kotlin/Unit)
|
||||
typeArguments: []
|
||||
]
|
||||
Reference in New Issue
Block a user