Make add / remove labeled return working for hierarchical blocks

Related to KT-20439
This commit is contained in:
Mikhail Glukhikh
2018-02-27 13:59:41 +03:00
parent 59f6dc07cf
commit 86e6f3c5e3
8 changed files with 78 additions and 28 deletions
@@ -390,6 +390,12 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
doTest(fileName);
}
@TestMetadata("multipleBlocks.kt")
public void testMultipleBlocks() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/addLabeledReturnInLambda/multipleBlocks.kt");
doTest(fileName);
}
@TestMetadata("multipleHighOrderFun.kt")
public void testMultipleHighOrderFun() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/addLabeledReturnInLambda/multipleHighOrderFun.kt");
@@ -13305,6 +13311,12 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
doTest(fileName);
}
@TestMetadata("multipleBlocks.kt")
public void testMultipleBlocks() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/removeLabeledReturnInLambda/multipleBlocks.kt");
doTest(fileName);
}
@TestMetadata("normal.kt")
public void testNormal() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/removeLabeledReturnInLambda/normal.kt");