Kapt: Write annotations with the "SOURCE" retention if kapt2 is enabled
(cherry picked from commit 6177b2b)
This commit is contained in:
committed by
Yan Zhulanow
parent
00355f3c52
commit
471ddc5a93
@@ -0,0 +1,15 @@
|
||||
// Same as withoutSource.kt
|
||||
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class SourceAnno
|
||||
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
annotation class BinaryAnno
|
||||
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class RuntimeAnno
|
||||
|
||||
@SourceAnno
|
||||
@BinaryAnno
|
||||
@RuntimeAnno
|
||||
class Test
|
||||
@@ -0,0 +1,22 @@
|
||||
@kotlin.annotation.Retention
|
||||
@java.lang.annotation.Retention
|
||||
@kotlin.Metadata
|
||||
public annotation class BinaryAnno
|
||||
|
||||
@kotlin.annotation.Retention
|
||||
@java.lang.annotation.Retention
|
||||
@kotlin.Metadata
|
||||
public annotation class RuntimeAnno
|
||||
|
||||
@kotlin.annotation.Retention
|
||||
@java.lang.annotation.Retention
|
||||
@kotlin.Metadata
|
||||
public annotation class SourceAnno
|
||||
|
||||
@RuntimeAnno
|
||||
@kotlin.Metadata
|
||||
@SourceAnno
|
||||
@BinaryAnno
|
||||
public final class Test {
|
||||
public method <init>(): void
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// Same as withSource.kt
|
||||
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class SourceAnno
|
||||
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
annotation class BinaryAnno
|
||||
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class RuntimeAnno
|
||||
|
||||
@SourceAnno
|
||||
@BinaryAnno
|
||||
@RuntimeAnno
|
||||
class Test
|
||||
@@ -0,0 +1,21 @@
|
||||
@kotlin.annotation.Retention
|
||||
@java.lang.annotation.Retention
|
||||
@kotlin.Metadata
|
||||
public annotation class BinaryAnno
|
||||
|
||||
@kotlin.annotation.Retention
|
||||
@java.lang.annotation.Retention
|
||||
@kotlin.Metadata
|
||||
public annotation class RuntimeAnno
|
||||
|
||||
@kotlin.annotation.Retention
|
||||
@java.lang.annotation.Retention
|
||||
@kotlin.Metadata
|
||||
public annotation class SourceAnno
|
||||
|
||||
@RuntimeAnno
|
||||
@kotlin.Metadata
|
||||
@BinaryAnno
|
||||
public final class Test {
|
||||
public method <init>(): void
|
||||
}
|
||||
Reference in New Issue
Block a user