Surround with: move declaration out from block

This commit is contained in:
Natalia.Ukhorskaya
2013-02-20 15:17:57 +04:00
parent 62266a64ee
commit 3d4a5256e6
58 changed files with 825 additions and 7 deletions
@@ -0,0 +1,5 @@
fun foo() {
<selection>fun test() {}
"aaa"</selection>
test()
}
@@ -0,0 +1,7 @@
fun foo() {
fun test() {}
if (<caret>) {
"aaa"
}
test()
}
@@ -0,0 +1,7 @@
fun foo() {
<selection>"aaa"
fun test() {}
"aaa"</selection>
test()
}
@@ -0,0 +1,9 @@
fun foo() {
fun test() {}
if (<caret>) {
"aaa"
"aaa"
}
test()
}
@@ -0,0 +1,9 @@
fun foo() {
<selection>
fun test() {}
"aaa"
test()
</selection>
val a = "ss"
}
@@ -0,0 +1,11 @@
fun foo() {
if (<caret>) {
fun test() {}
"aaa"
test()
}
val a = "ss"
}