Move Statement: Fix comma placement for class parameter

#KT-6672 Fixed
This commit is contained in:
Alexey Sedunov
2015-01-28 12:42:07 +03:00
parent 6235741f7f
commit 2dbfd1fc4c
32 changed files with 93 additions and 72 deletions
@@ -0,0 +1,7 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
val x = foo(
<caret>a,
b,
c
)
@@ -0,0 +1,7 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
val x = foo(
b,
<caret>a,
c
)
@@ -0,0 +1,7 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
val x = foo(
b,
<caret>a,
c
)
@@ -0,0 +1,7 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
val x = foo(
b,
c,
<caret>a
)
@@ -0,0 +1,8 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
// IS_APPLICABLE: false
val x = foo(
b,
c,
<caret>a
)
@@ -0,0 +1,7 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
val x = foo(
b,
c,
<caret>a
)
@@ -0,0 +1,7 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
val x = foo(
b,
<caret>a,
c
)
@@ -0,0 +1,7 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
val x = foo(
b,
<caret>a,
c
)
@@ -0,0 +1,7 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
val x = foo(
<caret>a,
b,
c
)
@@ -0,0 +1,8 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
// IS_APPLICABLE: false
val x = foo(
<caret>a,
b,
c
)
@@ -0,0 +1,9 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A(
b:<caret> Int,
a: Int,
c: Int
) {
}
@@ -0,0 +1,9 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A(
a: Int,
b:<caret> Int,
c: Int
) {
}
@@ -0,0 +1,9 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A(
b: Int,
<caret>a: Int,
c: Int
) {
}
@@ -0,0 +1,9 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A(
b: Int,
c: Int,
<caret>a: Int
) {
}
@@ -0,0 +1,9 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A(
a: Int,
b:<caret> Int,
c: Int
) {
}
@@ -0,0 +1,9 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A(
b:<caret> Int,
a: Int,
c: Int
) {
}
@@ -0,0 +1,9 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A(
b: Int,
c: Int,
<caret>a: Int
) {
}
@@ -0,0 +1,9 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A(
b: Int,
<caret>a: Int,
c: Int
) {
}
@@ -0,0 +1,10 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
// IS_APPLICABLE: false
class A(
b: Int,
c: Int,
<caret>a: Int
) {
}
@@ -0,0 +1,10 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
// IS_APPLICABLE: false
class A(
<caret>b: Int,
c: Int,
a: Int
) {
}
@@ -0,0 +1,16 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A {
fun foo<T,
U,
W>(
b:<caret> Int,
a: Int,
c: Int
) {
}
class B {
}
}
@@ -0,0 +1,16 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A {
fun foo<T,
U,
W>(
a: Int,
b:<caret> Int,
c: Int
) {
}
class B {
}
}
@@ -0,0 +1,16 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A {
fun foo<T,
U,
W>(
b: Int,
<caret>a: Int,
c: Int
) {
}
class B {
}
}
@@ -0,0 +1,16 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A {
fun foo<T,
U,
W>(
b: Int,
c: Int,
<caret>a: Int
) {
}
class B {
}
}
@@ -0,0 +1,16 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A {
fun foo<T,
U,
W>(
a: Int,
b:<caret> Int,
c: Int
) {
}
class B {
}
}
@@ -0,0 +1,16 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A {
fun foo<T,
U,
W>(
b:<caret> Int,
a: Int,
c: Int
) {
}
class B {
}
}
@@ -0,0 +1,16 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A {
fun foo<T,
U,
W>(
b: Int,
c: Int
<caret>a: Int,
) {
}
class B {
}
}
@@ -0,0 +1,16 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
class A {
fun foo<T,
U,
W>(
b: Int,
<caret>a: Int,
c: Int
) {
}
class B {
}
}
@@ -0,0 +1,17 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
// IS_APPLICABLE: false
class A {
fun foo<T,
U,
W>(
b: Int,
c: Int
<caret>a: Int,
) {
}
class B {
}
}
@@ -0,0 +1,17 @@
// MOVE: up
// MOVER_CLASS: org.jetbrains.kotlin.idea.codeInsight.upDownMover.JetExpressionMover
// IS_APPLICABLE: false
class A {
fun foo<T,
U,
W>(
b: Int<caret>,
c: Int
a: Int,
) {
}
class B {
}
}