Recursive annotations are now possible for properties / functions / classes / primary constructors #EA-66984 Fixed #EA-63992 Fixed #EA-64272 Fixed

A set of tests provided.
This commit is contained in:
Mikhail Glukhikh
2015-06-02 10:38:25 +03:00
parent 0c1a8ab8ff
commit 98407a7c4b
31 changed files with 261 additions and 12 deletions
@@ -597,6 +597,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("AnnotatedConstructor.kt")
public void testAnnotatedConstructor() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/AnnotatedConstructor.kt");
doTest(fileName);
}
@TestMetadata("AnnotatedConstructorParams.kt")
public void testAnnotatedConstructorParams() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/AnnotatedConstructorParams.kt");
@@ -765,6 +771,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("MutuallyRecursivelyAnnotatedGlobalFunction.kt")
public void testMutuallyRecursivelyAnnotatedGlobalFunction() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/MutuallyRecursivelyAnnotatedGlobalFunction.kt");
doTest(fileName);
}
@TestMetadata("noNameProperty.kt")
public void testNoNameProperty() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/noNameProperty.kt");
@@ -813,6 +825,54 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("RecursivelyAnnotated.kt")
public void testRecursivelyAnnotated() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/RecursivelyAnnotated.kt");
doTest(fileName);
}
@TestMetadata("RecursivelyAnnotatedFunctionParameter.kt")
public void testRecursivelyAnnotatedFunctionParameter() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/RecursivelyAnnotatedFunctionParameter.kt");
doTest(fileName);
}
@TestMetadata("RecursivelyAnnotatedGlobalFunction.kt")
public void testRecursivelyAnnotatedGlobalFunction() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/RecursivelyAnnotatedGlobalFunction.kt");
doTest(fileName);
}
@TestMetadata("RecursivelyAnnotatedGlobalProperty.kt")
public void testRecursivelyAnnotatedGlobalProperty() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/RecursivelyAnnotatedGlobalProperty.kt");
doTest(fileName);
}
@TestMetadata("RecursivelyAnnotatedParameter.kt")
public void testRecursivelyAnnotatedParameter() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/RecursivelyAnnotatedParameter.kt");
doTest(fileName);
}
@TestMetadata("RecursivelyAnnotatedParameterWithAt.kt")
public void testRecursivelyAnnotatedParameterWithAt() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/RecursivelyAnnotatedParameterWithAt.kt");
doTest(fileName);
}
@TestMetadata("RecursivelyAnnotatedProperty.kt")
public void testRecursivelyAnnotatedProperty() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/RecursivelyAnnotatedProperty.kt");
doTest(fileName);
}
@TestMetadata("RecursivelyIncorrectlyAnnotatedParameter.kt")
public void testRecursivelyIncorrectlyAnnotatedParameter() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/RecursivelyIncorrectlyAnnotatedParameter.kt");
doTest(fileName);
}
@TestMetadata("typeAnnotations.kt")
public void testTypeAnnotations() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/typeAnnotations.kt");
@@ -10122,6 +10182,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("ea66984.kt")
public void testEa66984() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/regressions/ea66984.kt");
doTest(fileName);
}
@TestMetadata("ErrorsOnIbjectExpressionsAsParameters.kt")
public void testErrorsOnIbjectExpressionsAsParameters() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/regressions/ErrorsOnIbjectExpressionsAsParameters.kt");
@@ -713,6 +713,21 @@ public class JetDiagnosticsTestWithStdLibGenerated extends AbstractJetDiagnostic
}
}
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/regression")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Regression extends AbstractJetDiagnosticsTestWithStdLib {
public void testAllFilesPresentInRegression() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/regression"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("ea63992.kt")
public void testEa63992() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithStdLib/regression/ea63992.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/reified")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)