Move File/Change Package: Change package directive prior to processing of internal usages (otherwise some necessary imports are not added)
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "source/foo.kt",
|
||||
"type": "CHANGE_PACKAGE_DIRECTIVE",
|
||||
"newPackageName": "source"
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package target
|
||||
|
||||
import source.C
|
||||
|
||||
fun C.foo() {
|
||||
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package source
|
||||
|
||||
import target.foo
|
||||
|
||||
class C
|
||||
|
||||
fun test(c: C) {
|
||||
c.foo()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package target
|
||||
|
||||
fun C.foo() {
|
||||
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package target
|
||||
|
||||
class C
|
||||
|
||||
fun test(c: C) {
|
||||
c.foo()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "source/foo.kt",
|
||||
"type": "MOVE_FILES",
|
||||
"targetPackage": "target"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package source
|
||||
|
||||
import target.C
|
||||
|
||||
fun C.foo() {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package target
|
||||
|
||||
import source.foo
|
||||
|
||||
class C
|
||||
|
||||
fun test(c: C) {
|
||||
c.foo()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package source
|
||||
|
||||
fun C.foo() {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package source
|
||||
|
||||
class C
|
||||
|
||||
fun test(c: C) {
|
||||
c.foo()
|
||||
}
|
||||
Reference in New Issue
Block a user