Move statement: fix comma placement for argument/parameter

#KT-14756 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-07-17 18:28:59 +09:00
parent c14f842aa0
commit 399db0d3c7
14 changed files with 124 additions and 2 deletions
@@ -0,0 +1,6 @@
// MOVE: down
val x = listOf(
1,
<caret>2, 3,
4
)
@@ -0,0 +1,6 @@
// MOVE: down
val x = listOf(
1,
4,
<caret>2, 3
)
@@ -0,0 +1,6 @@
// MOVE: up
val x = listOf(
1,
4,
<caret>2, 3
)
@@ -0,0 +1,6 @@
// MOVE: up
val x = listOf(
1,
<caret>2, 3,
4
)
@@ -0,0 +1,6 @@
// MOVE: down
class A(
a: Int,
<caret>b: Int, c: Int,
d: Int
)
@@ -0,0 +1,6 @@
// MOVE: down
class A(
a: Int,
d: Int,
<caret>b: Int, c: Int
)
@@ -0,0 +1,6 @@
// MOVE: up
class A(
a: Int,
d: Int,
<caret>b: Int, c: Int
)
@@ -0,0 +1,6 @@
// MOVE: up
class A(
a: Int,
<caret>b: Int, c: Int,
d: Int
)
@@ -0,0 +1,7 @@
// MOVE: down
fun test(
a: Int,
<caret>b: Int, c: Int,
d: Int
) {
}
@@ -0,0 +1,7 @@
// MOVE: down
fun test(
a: Int,
d: Int,
<caret>b: Int, c: Int
) {
}
@@ -0,0 +1,7 @@
// MOVE: up
fun test(
a: Int,
d: Int,
<caret>b: Int, c: Int
) {
}
@@ -0,0 +1,7 @@
// MOVE: up
fun test(
a: Int,
<caret>b: Int, c: Int,
d: Int
) {
}