[Analysis API] rework the resolve of the nested name references
To properly resolve qualifier parts in the middle, we need to resolve the whole qualifier to understand which parts of the qualifier are package or class qualifiers. And then we will be able to resolve the qualifier selected by the user to the proper class, package or callable. ^KT-59189
This commit is contained in:
committed by
Space Team
parent
785778511b
commit
724386a5f1
+12
@@ -0,0 +1,12 @@
|
||||
// FILE: main.kt
|
||||
val p = 10
|
||||
|
||||
/**
|
||||
* [p<caret>p].bar]
|
||||
*/
|
||||
fun foo() {}
|
||||
|
||||
// FILE: pp/dependent.kt
|
||||
package pp
|
||||
|
||||
fun bar(){}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: package pp
|
||||
Reference in New Issue
Block a user