Make annotations-modifiers private and fix some lost usages
It's needed to prevent usages of them as real annotation/type. But we can't remove them, because currently some modifiers are artificially resolved as annotations of those classes.
This commit is contained in:
@@ -28,7 +28,7 @@ import kotlin.annotation.AnnotationTarget.*
|
||||
*/
|
||||
@Target(CLASS)
|
||||
@MustBeDocumented
|
||||
public annotation class data
|
||||
private annotation class data
|
||||
|
||||
/**
|
||||
* Marks the annotated class, function, property, variable or parameter as deprecated.
|
||||
@@ -82,7 +82,7 @@ public annotation class Suppress(vararg val names: String)
|
||||
*/
|
||||
@Target(FUNCTION)
|
||||
@Retention(SOURCE)
|
||||
public annotation class tailrec
|
||||
private annotation class tailrec
|
||||
|
||||
/**
|
||||
* Hides the annotated function, property or constructor from the overload resolution,
|
||||
@@ -101,4 +101,4 @@ public annotation class HiddenDeclaration
|
||||
@Target(FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER)
|
||||
@Retention(SOURCE)
|
||||
@MustBeDocumented
|
||||
public annotation class external
|
||||
private annotation class external
|
||||
|
||||
@@ -23,7 +23,7 @@ package kotlin
|
||||
@Target(AnnotationTarget.VALUE_PARAMETER)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
@MustBeDocumented
|
||||
public annotation class noinline
|
||||
private annotation class noinline
|
||||
|
||||
/**
|
||||
* Enables inlining of the annotated function and the function literals that it takes as parameters into the
|
||||
@@ -37,7 +37,7 @@ public annotation class noinline
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
@MustBeDocumented
|
||||
public annotation class inline
|
||||
private annotation class inline
|
||||
|
||||
/**
|
||||
* Forbids use of non-local control flow statements within lambdas passed as arguments for this parameter.
|
||||
@@ -45,4 +45,4 @@ public annotation class inline
|
||||
@Target(AnnotationTarget.VALUE_PARAMETER)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
@MustBeDocumented
|
||||
public annotation class crossinline
|
||||
private annotation class crossinline
|
||||
|
||||
@@ -83,7 +83,7 @@ public annotation class Target(vararg val allowedTargets: AnnotationTarget)
|
||||
@Target(AnnotationTarget.ANNOTATION_CLASS)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
@MustBeDocumented
|
||||
public annotation class annotation
|
||||
private annotation class annotation
|
||||
|
||||
/**
|
||||
* This meta-annotation determines whether an annotation is stored in binary output and visible for reflection. By default, both are true.
|
||||
|
||||
Reference in New Issue
Block a user