KT-57135 Take into account annotations' allowed targets
- Check allowed targets - Attach field annotations to the backing field
This commit is contained in:
committed by
Space Team
parent
ea2145415d
commit
37ed7beda0
+6
@@ -24,6 +24,12 @@ public class SymbolLightClassesByPsiForLibraryTestGenerated extends AbstractSymb
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByPsi"), Pattern.compile("^(.+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("allowedTargets.kt")
|
||||
public void testAllowedTargets() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/allowedTargets.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationWithSetParamPropertyModifier.kt")
|
||||
public void testAnnotationWithSetParamPropertyModifier() throws Exception {
|
||||
|
||||
+6
@@ -24,6 +24,12 @@ public class SymbolLightClassesEqualityByPsiForLibraryTestGenerated extends Abst
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByPsi"), Pattern.compile("^(.+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("allowedTargets.kt")
|
||||
public void testAllowedTargets() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/allowedTargets.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationWithSetParamPropertyModifier.kt")
|
||||
public void testAnnotationWithSetParamPropertyModifier() throws Exception {
|
||||
|
||||
+6
@@ -24,6 +24,12 @@ public class SymbolLightClassesParentingByPsiForLibraryTestGenerated extends Abs
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByPsi"), Pattern.compile("^(.+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("allowedTargets.kt")
|
||||
public void testAllowedTargets() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/allowedTargets.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationWithSetParamPropertyModifier.kt")
|
||||
public void testAnnotationWithSetParamPropertyModifier() throws Exception {
|
||||
|
||||
+6
@@ -24,6 +24,12 @@ public class SymbolLightClassesByPsiForSourceTestGenerated extends AbstractSymbo
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByPsi"), Pattern.compile("^(.+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("allowedTargets.kt")
|
||||
public void testAllowedTargets() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/allowedTargets.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationWithSetParamPropertyModifier.kt")
|
||||
public void testAnnotationWithSetParamPropertyModifier() throws Exception {
|
||||
|
||||
+6
@@ -24,6 +24,12 @@ public class SymbolLightClassesEqualityByPsiForSourceTestGenerated extends Abstr
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByPsi"), Pattern.compile("^(.+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("allowedTargets.kt")
|
||||
public void testAllowedTargets() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/allowedTargets.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationWithSetParamPropertyModifier.kt")
|
||||
public void testAnnotationWithSetParamPropertyModifier() throws Exception {
|
||||
|
||||
+6
@@ -24,6 +24,12 @@ public class SymbolLightClassesParentingByPsiForSourceTestGenerated extends Abst
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByPsi"), Pattern.compile("^(.+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("allowedTargets.kt")
|
||||
public void testAllowedTargets() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/allowedTargets.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationWithSetParamPropertyModifier.kt")
|
||||
public void testAnnotationWithSetParamPropertyModifier() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user