KT-3732 "Move statement" should respect DSLs

This commit is contained in:
Alexey Sedunov
2013-07-09 16:24:18 +04:00
parent 4a19d4f77b
commit 3a881672e8
18 changed files with 210 additions and 9 deletions
@@ -847,6 +847,26 @@ public class CodeMoverTestGenerated extends AbstractCodeMoverTest {
doTestExpression("idea/testData/codeInsight/moveUpDown/expressions/if4.kt");
}
@TestMetadata("intoClosure1.kt")
public void testIntoClosure1() throws Exception {
doTestExpression("idea/testData/codeInsight/moveUpDown/expressions/intoClosure1.kt");
}
@TestMetadata("intoClosure2.kt")
public void testIntoClosure2() throws Exception {
doTestExpression("idea/testData/codeInsight/moveUpDown/expressions/intoClosure2.kt");
}
@TestMetadata("intoNestedClosure1.kt")
public void testIntoNestedClosure1() throws Exception {
doTestExpression("idea/testData/codeInsight/moveUpDown/expressions/intoNestedClosure1.kt");
}
@TestMetadata("intoNestedClosure2.kt")
public void testIntoNestedClosure2() throws Exception {
doTestExpression("idea/testData/codeInsight/moveUpDown/expressions/intoNestedClosure2.kt");
}
@TestMetadata("lambda1.kt")
public void testLambda1() throws Exception {
doTestExpression("idea/testData/codeInsight/moveUpDown/expressions/lambda1.kt");
@@ -862,6 +882,26 @@ public class CodeMoverTestGenerated extends AbstractCodeMoverTest {
doTestExpression("idea/testData/codeInsight/moveUpDown/expressions/lambda3.kt");
}
@TestMetadata("outOfClosure1.kt")
public void testOutOfClosure1() throws Exception {
doTestExpression("idea/testData/codeInsight/moveUpDown/expressions/outOfClosure1.kt");
}
@TestMetadata("outOfClosure2.kt")
public void testOutOfClosure2() throws Exception {
doTestExpression("idea/testData/codeInsight/moveUpDown/expressions/outOfClosure2.kt");
}
@TestMetadata("outOfNestedClosure1.kt")
public void testOutOfNestedClosure1() throws Exception {
doTestExpression("idea/testData/codeInsight/moveUpDown/expressions/outOfNestedClosure1.kt");
}
@TestMetadata("outOfNestedClosure2.kt")
public void testOutOfNestedClosure2() throws Exception {
doTestExpression("idea/testData/codeInsight/moveUpDown/expressions/outOfNestedClosure2.kt");
}
@TestMetadata("when1.kt")
public void testWhen1() throws Exception {
doTestExpression("idea/testData/codeInsight/moveUpDown/expressions/when1.kt");