Make JvmPackageName a common internal annotation

This commit is contained in:
Ilya Gorbunov
2019-03-01 02:02:49 +03:00
parent f07fed9afa
commit db4c4132f6
3 changed files with 15 additions and 2 deletions
@@ -140,3 +140,11 @@ public expect annotation class Strictfp()
@MustBeDocumented @MustBeDocumented
@OptionalExpectation @OptionalExpectation
public expect annotation class Synchronized() public expect annotation class Synchronized()
@Target(AnnotationTarget.FILE)
@Retention(AnnotationRetention.SOURCE)
@MustBeDocumented
@SinceKotlin("1.2")
@OptionalExpectation
internal expect annotation class JvmPackageName(val name: String)
@@ -21,6 +21,11 @@ internal annotation class JvmName(public val name: String)
@MustBeDocumented @MustBeDocumented
internal annotation class JvmMultifileClass internal annotation class JvmMultifileClass
@Target(AnnotationTarget.FILE)
@Retention(AnnotationRetention.SOURCE)
@MustBeDocumented
internal annotation class JvmPackageName(val name: String)
@Target(AnnotationTarget.FIELD) @Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.SOURCE) @Retention(AnnotationRetention.SOURCE)
@MustBeDocumented @MustBeDocumented
@@ -61,7 +61,7 @@ public actual annotation class JvmMultifileClass
@Retention(AnnotationRetention.SOURCE) @Retention(AnnotationRetention.SOURCE)
@MustBeDocumented @MustBeDocumented
@SinceKotlin("1.2") @SinceKotlin("1.2")
internal annotation class JvmPackageName(val name: String) internal actual annotation class JvmPackageName(actual val name: String)
/** /**
* Sets `ACC_SYNTHETIC` flag on the annotated target in the Java bytecode. * Sets `ACC_SYNTHETIC` flag on the annotated target in the Java bytecode.