Parsing: secondary constructors

This commit is contained in:
Denis Zharkov
2015-01-21 15:02:34 +03:00
parent cb881d2628
commit 3ba94d7352
30 changed files with 1249 additions and 14 deletions
@@ -48,6 +48,7 @@ public class JetParsingTestGenerated extends AbstractJetParsingTest {
Psi.PropertyDelegate.class,
Psi.Recovery.class,
Psi.Script.class,
Psi.SecondaryConstructors.class,
Psi.StringTemplates.class,
})
@RunWith(JUnit3RunnerWithInners.class)
@@ -1802,6 +1803,51 @@ public class JetParsingTestGenerated extends AbstractJetParsingTest {
}
}
@TestMetadata("compiler/testData/psi/secondaryConstructors")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SecondaryConstructors extends AbstractJetParsingTest {
public void testAllFilesPresentInSecondaryConstructors() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/psi/secondaryConstructors"), Pattern.compile("^(.*)\\.kts?$"), true);
}
@TestMetadata("anonymousInitializer.kt")
public void testAnonymousInitializer() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/psi/secondaryConstructors/anonymousInitializer.kt");
doParsingTest(fileName);
}
@TestMetadata("basic.kt")
public void testBasic() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/psi/secondaryConstructors/basic.kt");
doParsingTest(fileName);
}
@TestMetadata("enumParsing.kt")
public void testEnumParsing() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/psi/secondaryConstructors/enumParsing.kt");
doParsingTest(fileName);
}
@TestMetadata("recoveryEmptyDelegationType.kt")
public void testRecoveryEmptyDelegationType() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/psi/secondaryConstructors/recoveryEmptyDelegationType.kt");
doParsingTest(fileName);
}
@TestMetadata("recoveryWithoutParameterList.kt")
public void testRecoveryWithoutParameterList() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/psi/secondaryConstructors/recoveryWithoutParameterList.kt");
doParsingTest(fileName);
}
@TestMetadata("recoveryWrongDelegationName.kt")
public void testRecoveryWrongDelegationName() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/psi/secondaryConstructors/recoveryWrongDelegationName.kt");
doParsingTest(fileName);
}
}
@TestMetadata("compiler/testData/psi/stringTemplates")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)