Copy: Copy entire file if it contains just a selected declaration

This commit is contained in:
Alexey Sedunov
2017-09-19 19:18:24 +03:00
parent c8c0ab1647
commit 6e59cc2140
14 changed files with 94 additions and 4 deletions
@@ -0,0 +1,7 @@
package bar
// test
class A
// test2
@@ -0,0 +1,7 @@
package foo
// test
class A
// test2
@@ -0,0 +1,7 @@
package foo
// test
class <caret>A
// test2
@@ -0,0 +1,4 @@
{
"mainFile": "foo/A.kt",
"targetPackage": "bar"
}
@@ -0,0 +1,7 @@
package bar
// test
class B
// test2
@@ -0,0 +1,7 @@
package foo
// test
class A
// test2
@@ -0,0 +1,7 @@
package foo
// test
class <caret>A
// test2
@@ -0,0 +1,5 @@
{
"mainFile": "foo/A.kt",
"targetPackage": "bar",
"newName": "B"
}
@@ -5,3 +5,7 @@ import foo.J.JJJ
fun test() {
val x = JJJ
}
fun dummy() {
}
@@ -5,3 +5,7 @@ import foo.J.JJJ
fun <caret>test() {
val x = JJJ
}
fun dummy() {
}
@@ -5,3 +5,7 @@ import foo.J.jjj
fun test() {
jjj()
}
fun dummy() {
}
@@ -5,3 +5,7 @@ import foo.J.jjj
fun <caret>test() {
jjj()
}
fun dummy() {
}