Extract common logic for annotation entries collection

Before this change annotation entries starting with '@' within expressions hadn't been resolved

Note that order of annotation entries in result may change according to order of children in PSI (see changed testData)
This commit is contained in:
Denis Zharkov
2015-05-06 15:07:47 +03:00
parent 7d8351abc6
commit c5af4b42b4
10 changed files with 101 additions and 41 deletions
@@ -639,6 +639,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("atAnnotationResolve.kt")
public void testAtAnnotationResolve() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/atAnnotationResolve.kt");
doTest(fileName);
}
@TestMetadata("BasicAnnotations.kt")
public void testBasicAnnotations() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/BasicAnnotations.kt");