Annotation rename: target --> @Target

This commit is contained in:
Mikhail Glukhikh
2015-09-07 11:25:53 +03:00
parent 6c903a607c
commit 8f7b29f80a
127 changed files with 228 additions and 228 deletions
+7 -7
View File
@@ -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
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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