Annotation rename: target --> @Target
This commit is contained in:
@@ -19,31 +19,31 @@ package kotlin.js
|
||||
import kotlin.annotation.AnnotationTarget.*
|
||||
|
||||
native
|
||||
target(CLASSIFIER, FUNCTION, PROPERTY, CONSTRUCTOR, VALUE_PARAMETER)
|
||||
@Target(CLASSIFIER, FUNCTION, PROPERTY, CONSTRUCTOR, VALUE_PARAMETER)
|
||||
public annotation class native(public val name: String = "")
|
||||
|
||||
native
|
||||
target(FUNCTION)
|
||||
@Target(FUNCTION)
|
||||
public annotation class nativeGetter
|
||||
|
||||
native
|
||||
target(FUNCTION)
|
||||
@Target(FUNCTION)
|
||||
public annotation class nativeSetter
|
||||
|
||||
native
|
||||
target(FUNCTION)
|
||||
@Target(FUNCTION)
|
||||
public annotation class nativeInvoke
|
||||
|
||||
native
|
||||
target(CLASSIFIER, FUNCTION, PROPERTY)
|
||||
@Target(CLASSIFIER, FUNCTION, PROPERTY)
|
||||
public annotation class library(public val name: String = "")
|
||||
|
||||
native
|
||||
target(PROPERTY)
|
||||
@Target(PROPERTY)
|
||||
public annotation class enumerable()
|
||||
|
||||
// TODO make it "internal" or "fake"
|
||||
native
|
||||
target(CLASSIFIER)
|
||||
@Target(CLASSIFIER)
|
||||
deprecated("Do not use this annotation: it is for internal use only")
|
||||
public annotation class marker
|
||||
@@ -17,6 +17,6 @@
|
||||
package kotlin.jvm
|
||||
|
||||
// is used in common generated code in stdlib
|
||||
target(AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR)
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
internal annotation class jvmOverloads
|
||||
|
||||
@@ -24,12 +24,12 @@ import kotlin.InlineOption.ONLY_LOCAL_RETURN
|
||||
// They was reserved word in ECMAScript 2, but is not since ECMAScript 5.
|
||||
|
||||
native
|
||||
target(AnnotationTarget.PROPERTY, AnnotationTarget.FIELD)
|
||||
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.FIELD)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
public annotation class volatile
|
||||
|
||||
native
|
||||
target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
public annotation class synchronized
|
||||
|
||||
|
||||
Reference in New Issue
Block a user