FIR IDE: Add more accurate shortening for properties
This commit is contained in:
@@ -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
|
||||
}
|
||||
+5
@@ -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
|
||||
|
||||
+5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user