Fixed references move refactoring for NonCode usages
We need to try correctly refactor NonCode usages of Java-like facade FQ names i.e. if we have file A.kt with method foo we need to check AKt.foo and foo entries for non-code text search Fixed #KT-36382
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
package code.anotherPackage
|
||||
|
||||
fun MyTest() {}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package code
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// MyTest
|
||||
// code.anotherPackage.MyTest
|
||||
// code.anotherPackage.TestKt.MyTest
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package code
|
||||
|
||||
fun <caret>MyTest() {}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// MyTest
|
||||
// code.MyTest
|
||||
// code.TestKt.MyTest
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "code/test.kt",
|
||||
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
|
||||
"targetPackage": "code.anotherPackage"
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
|
||||
//Here we are using newPackage.foo name for test pure kotlin naming of top level kotlin function
|
||||
|
||||
//And we are using newPackage.FunKt.foo name for test java naming of top level kotlin function
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
|
||||
//Here we are using oldPackage.foo name for test pure kotlin naming of top level kotlin function
|
||||
|
||||
//And we are using oldPackage.FunKt.foo name for test java naming of top level kotlin function
|
||||
Reference in New Issue
Block a user