[AA] implement KtFirSimpleNameReference.getImportAlias

^ KT-62980 fixed

Merge-request: KT-MR-12786
Merged-by: Anna Kozlova <Anna.Kozlova@jetbrains.com>
This commit is contained in:
Anna Kozlova
2023-11-02 21:23:43 +00:00
committed by Space Team
parent 0fb853a995
commit 205a125c5f
9 changed files with 280 additions and 2 deletions
@@ -0,0 +1,9 @@
// TYPE_ALIAS: as bar
import Foo as bar
object Foo {
}
fun test() {
val x: b<caret>ar? = null
}
@@ -0,0 +1,10 @@
// TYPE_ALIAS: as bar
import Foo.foo as bar
object Foo {
fun foo() {}
}
fun test() {
b<caret>ar()
}
@@ -0,0 +1,10 @@
// TYPE_ALIAS: as bar
import Foo.foo as bar
object Foo {
val foo = 1
}
fun test() {
val x = b<caret>ar
}