FIR IDE: add KtExtensionReceiverSymbol
This symbol represents the extension receiver of a callable and currently is used as the resolution target of `this` in a callable with extension.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: extension receiver of fun kotlin.String.foo()
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
fun String.foo() {
|
||||
this@f<caret>oo
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Foo) fun kotlin.String.foo()
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
fun String.foo() {
|
||||
t<caret>his@foo
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: extension receiver of fun kotlin.String.foo()
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class Foo {
|
||||
val String.foo : Any
|
||||
get() {
|
||||
this@f<caret>oo
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Foo) val kotlin.String.foo: kotlin.Any
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class Foo {
|
||||
val String.foo : Any
|
||||
get() {
|
||||
t<caret>his@foo
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: extension receiver of val kotlin.String.foo: kotlin.Any
|
||||
Reference in New Issue
Block a user