Fix moving of value/type parameters

This commit is contained in:
Alexey Sedunov
2013-05-30 17:30:51 +04:00
parent 57edbdfbc4
commit 5345d0a0d5
33 changed files with 526 additions and 11 deletions
@@ -0,0 +1,9 @@
// MOVE: down
class A {
fun <caret>foo() {
}
class B {
}
}
@@ -0,0 +1,9 @@
// MOVE: down
class A {
class B {
fun <caret>foo() {
}
}
}
@@ -0,0 +1,9 @@
// MOVE: down
class A {
fun <caret>foo() {
}
class B {
}
}
@@ -0,0 +1,9 @@
// MOVE: down
class A {
class B {
fun <caret>foo() {
}
}
}
@@ -0,0 +1,9 @@
// MOVE: down
class A {
fun foo(): Unit<caret> {
}
class B {
}
}
@@ -0,0 +1,9 @@
// MOVE: down
class A {
class B {
fun foo(): Unit<caret> {
}
}
}
@@ -0,0 +1,15 @@
// MOVE: down
class A {
fun foo<<caret>T,
U,
W>(
b: Int,
a: Int,
c: Int
) {
}
class B {
}
}
@@ -0,0 +1,15 @@
// MOVE: down
class A {
class B {
fun foo<<caret>T,
U,
W>(
b: Int,
a: Int,
c: Int
) {
}
}
}
@@ -0,0 +1,15 @@
// MOVE: down
class A {
fun foo<T,
U<caret>,
W>(
b: Int,
a: Int,
c: Int
) {
}
class B {
}
}
@@ -0,0 +1,15 @@
// MOVE: down
class A {
class B {
fun foo<T,
U<caret>,
W>(
b: Int,
a: Int,
c: Int
) {
}
}
}
@@ -0,0 +1,15 @@
// MOVE: down
class A {
fun foo<T,
U,
W<caret>>(
b: Int,
a: Int,
c: Int
) {
}
class B {
}
}
@@ -0,0 +1,15 @@
// MOVE: down
class A {
class B {
fun foo<T,
U,
W<caret>>(
b: Int,
a: Int,
c: Int
) {
}
}
}
@@ -0,0 +1,16 @@
// MOVE: down
// MOVER_CLASS: org.jetbrains.jet.plugin.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.jet.plugin.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.jet.plugin.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.jet.plugin.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.jet.plugin.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.jet.plugin.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.jet.plugin.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.jet.plugin.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.jet.plugin.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.jet.plugin.codeInsight.upDownMover.JetExpressionMover
// IS_APPLICABLE: false
class A {
fun foo<T,
U,
W>(
b: Int<caret>,
c: Int
a: Int,
) {
}
class B {
}
}