mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Additional resolve for annotations in lazy resolve
GitOrigin-RevId: 3e70dbf9fce1442f35ba08ffcb9ea42051aeacd8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2ab4847f0a
commit
8d7d555db7
+20
@@ -36,6 +36,26 @@ public class ReferenceResolveTestGenerated extends AbstractResolveBaseTest {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("idea/testData/resolve/references"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationForClass.kt")
|
||||
public void testAnnotationForClass() throws Exception {
|
||||
doTest("idea/testData/resolve/references/AnnotationForClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationInsideFunction.kt")
|
||||
public void testAnnotationInsideFunction() throws Exception {
|
||||
doTest("idea/testData/resolve/references/AnnotationInsideFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationParameter.kt")
|
||||
public void testAnnotationParameter() throws Exception {
|
||||
doTest("idea/testData/resolve/references/AnnotationParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("AnnotationTypeParameter.kt")
|
||||
public void testAnnotationTypeParameter() throws Exception {
|
||||
doTest("idea/testData/resolve/references/AnnotationTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassReferenceInImport.kt")
|
||||
public void testClassReferenceInImport() throws Exception {
|
||||
doTest("idea/testData/resolve/references/ClassReferenceInImport.kt");
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
annotation class Annotation
|
||||
|
||||
<caret>Annotation class Some
|
||||
|
||||
// REF: (test).Annotation
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
annotation class Annotation
|
||||
|
||||
fun test() {
|
||||
<caret>Annotation fun some() {
|
||||
}
|
||||
}
|
||||
|
||||
// REF: (test).Annotation
|
||||
@@ -0,0 +1,9 @@
|
||||
package testing
|
||||
|
||||
annotation class Annotation<T>(val clazz: Class<T>)
|
||||
class ATest
|
||||
|
||||
[Annotation<ATest>(javaClass<<caret>ATest>())]
|
||||
class BTest
|
||||
|
||||
// REF: (testing).ATest
|
||||
@@ -0,0 +1,9 @@
|
||||
package testing
|
||||
|
||||
annotation class Annotation<T>(val clazz: Class<T>)
|
||||
class ATest
|
||||
|
||||
[Annotation<<caret>ATest>(javaClass<ATest>())]
|
||||
class BTest
|
||||
|
||||
// REF: (testing).ATest
|
||||
Reference in New Issue
Block a user