[FIR] Set targets of annotation classes in FirJavaElementFinder

#KT-60504 Fixed
This commit is contained in:
Kirill Rakhman
2023-11-29 10:01:54 +01:00
committed by Space Team
parent daa02813c2
commit 81517a3d29
9 changed files with 162 additions and 67 deletions
@@ -0,0 +1,48 @@
annotation class A1
@Target(AnnotationTarget.CLASS)
annotation class A2
@Target(AnnotationTarget.ANNOTATION_CLASS)
annotation class A3
@Target(AnnotationTarget.TYPE_PARAMETER)
annotation class A4
@Target(AnnotationTarget.PROPERTY)
annotation class A5
@Target(AnnotationTarget.FIELD)
annotation class A6
@Target(AnnotationTarget.LOCAL_VARIABLE)
annotation class A7
@Target(AnnotationTarget.VALUE_PARAMETER)
annotation class A8
@Target(AnnotationTarget.CONSTRUCTOR)
annotation class A9
@Target(AnnotationTarget.FUNCTION)
annotation class A10
@Target(AnnotationTarget.PROPERTY_GETTER)
annotation class A11
@Target(AnnotationTarget.PROPERTY_SETTER)
annotation class A12
@Target(AnnotationTarget.TYPE)
annotation class A13
@Target(AnnotationTarget.EXPRESSION)
annotation class A14
@Target(AnnotationTarget.FILE)
annotation class A15
@Target(AnnotationTarget.TYPEALIAS)
annotation class A16
// LIGHT_CLASS_FQ_NAME: A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16
@@ -0,0 +1,47 @@
public final @interface A1 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE})
public final @interface A2 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({java.lang.annotation.ElementType.ANNOTATION_TYPE})
public final @interface A3 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE_PARAMETER})
public final @interface A4 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({})
public final @interface A5 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({java.lang.annotation.ElementType.FIELD})
public final @interface A6 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({java.lang.annotation.ElementType.LOCAL_VARIABLE})
public final @interface A7 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({java.lang.annotation.ElementType.PARAMETER})
public final @interface A8 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({java.lang.annotation.ElementType.CONSTRUCTOR})
public final @interface A9 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD})
public final @interface A10 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD})
public final @interface A11 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({java.lang.annotation.ElementType.METHOD})
public final @interface A12 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE_USE})
public final @interface A13 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({})
public final @interface A14 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({})
public final @interface A15 implements java.lang.annotation.Annotation {
}
@java.lang.annotation.Target({})
public final @interface A16 implements java.lang.annotation.Annotation {
}