[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:
Ilya Kirillov
2023-06-09 18:06:41 +02:00
committed by Space Team
parent 785778511b
commit 724386a5f1
11 changed files with 226 additions and 2 deletions
@@ -0,0 +1,12 @@
// FILE: main.kt
val p = 10
/**
* [p<caret>p].bar]
*/
fun foo() {}
// FILE: pp/dependent.kt
package pp
fun bar(){}
@@ -0,0 +1,2 @@
Resolved to:
0: package pp