diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/FieldAnnotations.kt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/FieldAnnotations.kt new file mode 100644 index 00000000000..af32874b86f --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/FieldAnnotations.kt @@ -0,0 +1,34 @@ +annotation class Ann + +class CustomDelegate { + public fun get(thisRef: Any?, prop: PropertyMetadata): String = prop.name +} + +@field:Ann +class SomeClass { + + @field:Ann + constructor() + + @field:Ann + protected val simpleProperty: String = "text" + + @field:[Ann] + protected val simplePropertyWithAnnotationList: String = "text" + + @field:Ann + protected val delegatedProperty: String by CustomDelegate() + + @field:Ann + val propertyWithCustomGetter: Int + get() = 5 + + @field:Ann + fun anotherFun(@field:Ann s: String) { + @field:Ann + val localVariable = 5 + } + +} + +class WithPrimaryConstructor(@field:Ann val a: String) \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/FieldAnnotations.txt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/FieldAnnotations.txt new file mode 100644 index 00000000000..b339893b3aa --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/FieldAnnotations.txt @@ -0,0 +1,36 @@ +package + +kotlin.annotation.annotation() internal final class Ann : kotlin.Annotation { + public constructor Ann() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +internal final class CustomDelegate { + public constructor CustomDelegate() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public final fun get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +@field:Ann() internal final class SomeClass { + @field:Ann() public constructor SomeClass() + @field:Ann() protected final val delegatedProperty: kotlin.String + @field:Ann() internal final val propertyWithCustomGetter: kotlin.Int + @field:Ann() protected final val simpleProperty: kotlin.String = "text" + @field:Ann() protected final val simplePropertyWithAnnotationList: kotlin.String = "text" + @field:Ann() internal final fun anotherFun(/*0*/ @field:Ann() s: kotlin.String): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +internal final class WithPrimaryConstructor { + public constructor WithPrimaryConstructor(/*0*/ @field:Ann() a: kotlin.String) + @field:Ann() internal final val a: kotlin.String + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/GetterAnnotations.kt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/GetterAnnotations.kt new file mode 100644 index 00000000000..3ac40262630 --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/GetterAnnotations.kt @@ -0,0 +1,37 @@ +annotation class Ann + +class CustomDelegate { + public fun get(thisRef: Any?, prop: PropertyMetadata): String = prop.name +} + +@get:Ann +class SomeClass { + + @get:Ann + constructor() + + @get:Ann + protected val simpleProperty: String = "text" + + @get:Ann + protected var mutableProperty: String = "text" + + @get:[Ann] + protected val simplePropertyWithAnnotationList: String = "text" + + @get:Ann + protected val delegatedProperty: String by CustomDelegate() + + @get:Ann + val propertyWithCustomGetter: Int + get() = 5 + + @get:Ann + fun annotationOnFunction(a: Int) = a + 5 + + fun anotherFun() { + @get:Ann + val localVariable = 5 + } + +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/GetterAnnotations.txt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/GetterAnnotations.txt new file mode 100644 index 00000000000..c0377496d5a --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/GetterAnnotations.txt @@ -0,0 +1,30 @@ +package + +kotlin.annotation.annotation() internal final class Ann : kotlin.Annotation { + public constructor Ann() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +internal final class CustomDelegate { + public constructor CustomDelegate() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public final fun get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +@get:Ann() internal final class SomeClass { + @get:Ann() public constructor SomeClass() + @get:Ann() protected final val delegatedProperty: kotlin.String + @get:Ann() protected final var mutableProperty: kotlin.String + @get:Ann() internal final val propertyWithCustomGetter: kotlin.Int + @get:Ann() protected final val simpleProperty: kotlin.String = "text" + @get:Ann() protected final val simplePropertyWithAnnotationList: kotlin.String = "text" + @get:Ann() internal final fun annotationOnFunction(/*0*/ a: kotlin.Int): kotlin.Int + internal final fun anotherFun(): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ParamAnnotations.kt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ParamAnnotations.kt new file mode 100644 index 00000000000..2443dcc67af --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ParamAnnotations.kt @@ -0,0 +1,24 @@ +annotation class Ann +annotation class Second + +@param:Ann +class SomeClass { + + @param:Ann + constructor(@param:Ann a: String) + + @param:Ann + protected val simpleProperty: String = "text" + + @param:Ann + fun anotherFun() { + @param:Ann + val localVariable = 5 + } + +} + +class PrimaryConstructorClass( + @param:Ann a: String, + @param:[Ann Second] b: String, + @param:Ann val c: String) \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ParamAnnotations.txt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ParamAnnotations.txt new file mode 100644 index 00000000000..b210a47b426 --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ParamAnnotations.txt @@ -0,0 +1,31 @@ +package + +kotlin.annotation.annotation() internal final class Ann : kotlin.Annotation { + public constructor Ann() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +internal final class PrimaryConstructorClass { + public constructor PrimaryConstructorClass(/*0*/ @param:Ann() a: kotlin.String, /*1*/ @param:Ann() @param:Second() b: kotlin.String) + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +kotlin.annotation.annotation() internal final class Second : kotlin.Annotation { + public constructor Second() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +@param:Ann() internal final class SomeClass { + @param:Ann() public constructor SomeClass(/*0*/ @param:Ann() a: kotlin.String) + @param:Ann() protected final val simpleProperty: kotlin.String = "text" + @param:Ann() internal final fun anotherFun(): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/PropertyAnnotations.kt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/PropertyAnnotations.kt new file mode 100644 index 00000000000..5d7afeb6895 --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/PropertyAnnotations.kt @@ -0,0 +1,37 @@ +annotation class Ann +annotation class Second + +class CustomDelegate { + public fun get(thisRef: Any?, prop: PropertyMetadata): String = prop.name +} + +@property:Ann +class SomeClass { + + @property:Ann + constructor(s: String) + + @property:Ann + protected val p1: String = "" + + @property:[Ann Second] + protected val p2: String = "" + + @property:Ann + protected var p3: String = "" + + @property:Ann + protected val p4: String by CustomDelegate() + + @property:Ann + var propertyWithCustomSetter: Int + get() = 5 + set(v) {} + + @property:Ann + fun anotherFun() { + @property:Ann + val localVariable = 5 + } + +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/PropertyAnnotations.txt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/PropertyAnnotations.txt new file mode 100644 index 00000000000..44b73caadd3 --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/PropertyAnnotations.txt @@ -0,0 +1,36 @@ +package + +kotlin.annotation.annotation() internal final class Ann : kotlin.Annotation { + public constructor Ann() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +internal final class CustomDelegate { + public constructor CustomDelegate() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public final fun get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +kotlin.annotation.annotation() internal final class Second : kotlin.Annotation { + public constructor Second() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +@property:Ann() internal final class SomeClass { + @property:Ann() public constructor SomeClass(/*0*/ s: kotlin.String) + @property:Ann() protected final val p1: kotlin.String = "" + @property:Ann() @property:Second() protected final val p2: kotlin.String = "" + @property:Ann() protected final var p3: kotlin.String + @property:Ann() protected final val p4: kotlin.String + @property:Ann() internal final var propertyWithCustomSetter: kotlin.Int + @property:Ann() internal final fun anotherFun(): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ReceiverAnnotations.kt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ReceiverAnnotations.kt new file mode 100644 index 00000000000..13af8259ce2 --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ReceiverAnnotations.kt @@ -0,0 +1,28 @@ +annotation class Ann + +@receiver:Ann +class SomeClass { + + @receiver:Ann + constructor(@receiver:Ann a: String) + + @receiver:Ann + protected val simpleProperty: String = "text" + + @receiver:Ann + fun anotherFun() { + @receiver:Ann + val localVariable = 5 + } + + @receiver:Ann + val String.extensionProperty2: String + get() = "A" +} + +@receiver:Ann +fun String.length2() = length() + +@receiver:Ann +val String.extensionProperty: String + get() = "A" \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ReceiverAnnotations.txt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ReceiverAnnotations.txt new file mode 100644 index 00000000000..578410daf86 --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ReceiverAnnotations.txt @@ -0,0 +1,20 @@ +package + +@receiver:Ann() internal val kotlin.String.extensionProperty: kotlin.String +@receiver:Ann() internal fun kotlin.String.length2(): kotlin.Int + +kotlin.annotation.annotation() internal final class Ann : kotlin.Annotation { + public constructor Ann() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +@receiver:Ann() internal final class SomeClass { + @receiver:Ann() public constructor SomeClass(/*0*/ @receiver:Ann() a: kotlin.String) + @receiver:Ann() protected final val simpleProperty: kotlin.String = "text" + @receiver:Ann() internal final fun anotherFun(): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SetterAnnotations.kt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SetterAnnotations.kt new file mode 100644 index 00000000000..7ae04a32220 --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SetterAnnotations.kt @@ -0,0 +1,36 @@ +annotation class Ann + +class CustomDelegate { + public fun get(thisRef: Any?, prop: PropertyMetadata): String = prop.name + fun set(thisRef: Any?, prop: PropertyMetadata, value: String) {} +} + +@set:Ann +class SomeClass { + + @set:Ann + protected val simpleProperty: String = "text" + + @set:Ann + protected var mutableProperty: String = "text" + + @set:[Ann] + protected var mutablePropertyWithAnnotationList: String = "text" + + @set:Ann + protected var delegatedProperty: String by CustomDelegate() + + @set:Ann + var propertyWithCustomSetter: Int + get() = 5 + set(v) {} + + @set:Ann + fun annotationOnFunction(a: Int) = a + 5 + + fun anotherFun() { + @set:Ann + val localVariable = 5 + } + +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SetterAnnotations.txt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SetterAnnotations.txt new file mode 100644 index 00000000000..a53e78b36f8 --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SetterAnnotations.txt @@ -0,0 +1,31 @@ +package + +kotlin.annotation.annotation() internal final class Ann : kotlin.Annotation { + public constructor Ann() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +internal final class CustomDelegate { + public constructor CustomDelegate() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public final fun get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + internal final fun set(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +@set:Ann() internal final class SomeClass { + public constructor SomeClass() + @set:Ann() protected final var delegatedProperty: kotlin.String + @set:Ann() protected final var mutableProperty: kotlin.String + @set:Ann() protected final var mutablePropertyWithAnnotationList: kotlin.String + @set:Ann() internal final var propertyWithCustomSetter: kotlin.Int + @set:Ann() protected final val simpleProperty: kotlin.String = "text" + @set:Ann() internal final fun annotationOnFunction(/*0*/ a: kotlin.Int): kotlin.Int + internal final fun anotherFun(): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SparamAnnotations.kt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SparamAnnotations.kt new file mode 100644 index 00000000000..ab16138238e --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SparamAnnotations.kt @@ -0,0 +1,37 @@ +annotation class Ann + +class CustomDelegate { + public fun get(thisRef: Any?, prop: PropertyMetadata): String = prop.name + fun set(thisRef: Any?, prop: PropertyMetadata, value: String) {} +} + +@sparam:Ann +class SomeClass { + + @sparam:Ann + constructor() + + @sparam:Ann + protected val simpleProperty: String = "text" + + @sparam:Ann + protected var mutableProperty: String = "text" + + @sparam:[Ann] + protected var mutablePropertyWithAnnotationList: String = "text" + + @sparam:Ann + protected var delegatedProperty: String by CustomDelegate() + + @sparam:Ann + var propertyWithCustomSetter: Int + get() = 5 + set(v) {} + + @sparam:Ann + fun anotherFun() { + @sparam:Ann + val localVariable = 5 + } + +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SparamAnnotations.txt b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SparamAnnotations.txt new file mode 100644 index 00000000000..3ac11dbf7e5 --- /dev/null +++ b/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SparamAnnotations.txt @@ -0,0 +1,30 @@ +package + +kotlin.annotation.annotation() internal final class Ann : kotlin.Annotation { + public constructor Ann() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +internal final class CustomDelegate { + public constructor CustomDelegate() + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public final fun get(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata): kotlin.String + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + internal final fun set(/*0*/ thisRef: kotlin.Any?, /*1*/ prop: kotlin.PropertyMetadata, /*2*/ value: kotlin.String): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} + +@sparam:Ann() internal final class SomeClass { + @sparam:Ann() public constructor SomeClass() + @sparam:Ann() protected final var delegatedProperty: kotlin.String + @sparam:Ann() protected final var mutableProperty: kotlin.String + @sparam:Ann() protected final var mutablePropertyWithAnnotationList: kotlin.String + @sparam:Ann() internal final var propertyWithCustomSetter: kotlin.Int + @sparam:Ann() protected final val simpleProperty: kotlin.String = "text" + @sparam:Ann() internal final fun anotherFun(): kotlin.Unit + public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean + public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} diff --git a/compiler/tests/org/jetbrains/kotlin/checkers/JetDiagnosticsTestGenerated.java b/compiler/tests/org/jetbrains/kotlin/checkers/JetDiagnosticsTestGenerated.java index c9c2137ca6b..c5bf8e7f9bc 100644 --- a/compiler/tests/org/jetbrains/kotlin/checkers/JetDiagnosticsTestGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/checkers/JetDiagnosticsTestGenerated.java @@ -1193,6 +1193,57 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest { } } } + + @TestMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class WithUseSiteTarget extends AbstractJetDiagnosticsTest { + public void testAllFilesPresentInWithUseSiteTarget() throws Exception { + JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget"), Pattern.compile("^(.+)\\.kt$"), true); + } + + @TestMetadata("FieldAnnotations.kt") + public void testFieldAnnotations() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/FieldAnnotations.kt"); + doTest(fileName); + } + + @TestMetadata("GetterAnnotations.kt") + public void testGetterAnnotations() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/GetterAnnotations.kt"); + doTest(fileName); + } + + @TestMetadata("ParamAnnotations.kt") + public void testParamAnnotations() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ParamAnnotations.kt"); + doTest(fileName); + } + + @TestMetadata("PropertyAnnotations.kt") + public void testPropertyAnnotations() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/PropertyAnnotations.kt"); + doTest(fileName); + } + + @TestMetadata("ReceiverAnnotations.kt") + public void testReceiverAnnotations() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ReceiverAnnotations.kt"); + doTest(fileName); + } + + @TestMetadata("SetterAnnotations.kt") + public void testSetterAnnotations() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SetterAnnotations.kt"); + doTest(fileName); + } + + @TestMetadata("SparamAnnotations.kt") + public void testSparamAnnotations() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SparamAnnotations.kt"); + doTest(fileName); + } + } } @TestMetadata("compiler/testData/diagnostics/tests/backingField")