QualifiedExpressionResolver: change root prefix from _Qfadj4tPV to _root_ide_package_

This commit is contained in:
Dmitry Gridin
2019-09-26 18:13:52 +07:00
parent 9a2da67919
commit 589094377e
3 changed files with 4 additions and 4 deletions
@@ -789,11 +789,11 @@ class QualifiedExpressionResolver(val languageVersionSettings: LanguageVersionSe
*
* fun test(a: Any) {
* a.A() // invalid code -> incorrect import/completion/etc.
* _Qfadj4tPV.a.A() // OK
* _root_ide_package_.a.A() // OK
* }
* ---------
*/
const val ROOT_PREFIX_FOR_IDE_RESOLUTION_MODE = "_Qfadj4tPV"
const val ROOT_PREFIX_FOR_IDE_RESOLUTION_MODE = "_root_ide_package_"
const val ROOT_PREFIX_FOR_IDE_RESOLUTION_MODE_WITH_DOT = "$ROOT_PREFIX_FOR_IDE_RESOLUTION_MODE."
}
}
+1 -1
View File
@@ -2,6 +2,6 @@ package a
class Goo {
fun x() {
<selection>_Qfadj4tPV.a.b.foo()</selection>
<selection>_root_ide_package_.a.b.foo()</selection>
}
}
+1 -1
View File
@@ -1,3 +1,3 @@
fun f(s: <selection>_Qfadj4tPV.same.same</selection>) {
fun f(s: <selection>_root_ide_package_.same.same</selection>) {
}