Added feature to "Convert to expression body" intention: selection for easier explicit type removal

This commit is contained in:
Valentin Kipyatkov
2014-10-23 11:08:12 +04:00
parent ea69f5a9a6
commit d13fd19a63
11 changed files with 46 additions and 5 deletions
@@ -3138,6 +3138,18 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
doTest(fileName);
}
@TestMetadata("protectedFunNoSelection.kt")
public void testProtectedFunNoSelection() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/convertToExpressionBody/protectedFunNoSelection.kt");
doTest(fileName);
}
@TestMetadata("publicFunNoSelection.kt")
public void testPublicFunNoSelection() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/convertToExpressionBody/publicFunNoSelection.kt");
doTest(fileName);
}
@TestMetadata("returnWithNoValue.kt")
public void testReturnWithNoValue() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/intentions/convertToExpressionBody/returnWithNoValue.kt");