Extract Function: Support multi-declaration initializers

#KT-5613 Fixed
This commit is contained in:
Alexey Sedunov
2014-09-01 13:21:57 +04:00
parent b33e696ab7
commit e03bae44d9
7 changed files with 61 additions and 1 deletions
@@ -974,6 +974,16 @@ public class JetExtractionTestGenerated extends AbstractJetExtractionTest {
doExtractFunctionTest("idea/testData/refactoring/extractFunction/initializers/properties/memberPropertyWithLambda.kt");
}
@TestMetadata("multiDeclaration.kt")
public void testMultiDeclaration() throws Exception {
doExtractFunctionTest("idea/testData/refactoring/extractFunction/initializers/properties/multiDeclaration.kt");
}
@TestMetadata("nestedInMultiDeclaration.kt")
public void testNestedInMultiDeclaration() throws Exception {
doExtractFunctionTest("idea/testData/refactoring/extractFunction/initializers/properties/nestedInMultiDeclaration.kt");
}
@TestMetadata("topLevelProperty.kt")
public void testTopLevelProperty() throws Exception {
doExtractFunctionTest("idea/testData/refactoring/extractFunction/initializers/properties/topLevelProperty.kt");