Move Declarations: Add intention which moves top-level declaration to the separate file in the same directory and package

#KT-4936 Fixed
This commit is contained in:
Alexey Sedunov
2015-09-04 18:29:04 +03:00
parent b4410c625f
commit 33c93eb4a9
22 changed files with 248 additions and 10 deletions
@@ -0,0 +1,5 @@
package source
fun bar() {
}
@@ -0,0 +1,11 @@
package p
class A {
}
fun foo() {
}
val x = 1
@@ -0,0 +1,5 @@
package source
fun bar() {
}
@@ -0,0 +1,11 @@
package p
class <caret>A {
}
fun foo() {
}
val x = 1
@@ -0,0 +1,4 @@
{
"mainFile": "source/test.kt",
"intentionClass": "org.jetbrains.kotlin.idea.refactoring.move.moveTopLevelDeclarations.MoveDeclarationToSeparateFileIntention"
}