PSI Pattern Matching: Prefer strongly matched children over weakly matched parents

This commit is contained in:
Alexey Sedunov
2014-10-20 17:32:18 +04:00
parent 40da4bd423
commit c492ffee08
4 changed files with 33 additions and 14 deletions
@@ -1086,7 +1086,13 @@ public class JetExtractionTestGenerated extends AbstractJetExtractionTest {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/extractFunction/duplicates/multipleOutputValuesMatching.kt");
doExtractFunctionTest(fileName);
}
@TestMetadata("nestedStrongMatch.kt")
public void testNestedStrongMatch() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/extractFunction/duplicates/nestedStrongMatch.kt");
doExtractFunctionTest(fileName);
}
@TestMetadata("notNullAssertion.kt")
public void testNotNullAssertion() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/refactoring/extractFunction/duplicates/notNullAssertion.kt");