FIR IDE: Add more accurate shortening for properties

This commit is contained in:
Roman Golyshev
2021-03-01 17:44:49 +03:00
parent 03a1c6fcca
commit 8392b36964
7 changed files with 42 additions and 9 deletions
@@ -0,0 +1,3 @@
package dependency
val topLevelProperty = 10
@@ -0,0 +1,6 @@
// FIR_COMPARISON
package test
fun usage() {
<selection>dependency.topLevelProperty</selection>
}
@@ -0,0 +1,8 @@
// FIR_COMPARISON
package test
import dependency.topLevelProperty
fun usage() {
topLevelProperty
}
@@ -3,14 +3,19 @@ package test
class Test
val property: Int = 10
fun test() {}
fun usage() {
class Test
val property: String = ""
fun test() {}
<selection>
_root_ide_package_.test.property
_root_ide_package_.test.test()
_root_ide_package_.test.Test
val t: _root_ide_package_.test.Test
@@ -3,14 +3,19 @@ package test
class Test
val property: Int = 10
fun test() {}
fun usage() {
class Test
val property: String = ""
fun test() {}
test.property
test.test()
test.Test
val t: test.Test