[AA] calculate ktType based on symbols when possible
then, for compiled code deserialized fir would be used instead of building decompiled text and consequence building and resolving of raw fir; type for ktTypeReference from compiled code is called e.g., by UAST inspections when they check annotations of the called function parameters
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
annotation class Anno
|
||||
|
||||
@An<caret>no
|
||||
class Sub
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: Anno
|
||||
ktType: Anno
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
annotation class Anno
|
||||
|
||||
fun f(@An<caret>no p: String) {}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
expression: Anno
|
||||
ktType: Anno
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
annotation class Anno
|
||||
@An<caret>no
|
||||
fun f() {}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
expression: Anno
|
||||
ktType: Anno
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class Foo {}
|
||||
|
||||
fun F<caret>oo.f(): Boolean = false
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: Foo
|
||||
ktType: Foo
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class Foo {}
|
||||
|
||||
fun Foo.f(): Boo<caret>lean = false
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: Boolean
|
||||
ktType: kotlin.Boolean
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class Foo {}
|
||||
|
||||
var F<caret>oo.f: Boolean = false
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: Foo
|
||||
ktType: Foo
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class Foo {}
|
||||
|
||||
var Foo.f: B<caret>oolean = false
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: Boolean
|
||||
ktType: kotlin.Boolean
|
||||
Reference in New Issue
Block a user