Move statement: move expression over comments (KT-23461)

#KT-23461 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-07-19 19:23:31 +09:00
committed by Nikolay Krasko
parent 20c45a8382
commit ed28a06285
10 changed files with 106 additions and 0 deletions
@@ -0,0 +1,7 @@
// MOVE: up
fun wrap() {
// comment1
// comment2
val b = 42
<caret>fun nested() {}
}
@@ -0,0 +1,7 @@
// MOVE: up
fun wrap() {
<caret>fun nested() {}
// comment1
// comment2
val b = 42
}
@@ -0,0 +1,9 @@
// MOVE: up
fun wrap() {
/*
comment1
comment2
*/
val b = 42
<caret>fun nested() {}
}
@@ -0,0 +1,9 @@
// MOVE: up
fun wrap() {
<caret>fun nested() {}
/*
comment1
comment2
*/
val b = 42
}
@@ -0,0 +1,7 @@
// MOVE: down
fun wrap() {
<caret>fun nested() {}
// comment1
// comment2
val b = 42
}
@@ -0,0 +1,7 @@
// MOVE: down
fun wrap() {
// comment1
// comment2
val b = 42
<caret>fun nested() {}
}
@@ -0,0 +1,9 @@
// MOVE: down
fun wrap() {
<caret>fun nested() {}
/*
comment1
comment1
*/
val b = 42
}
@@ -0,0 +1,9 @@
// MOVE: down
fun wrap() {
/*
comment1
comment1
*/
val b = 42
<caret>fun nested() {}
}