publicField -> JvmField

Effectively drop publicField and introduce JvmField (which has the same effect for now)
Implement frontend checks for @JvmField
Replace publicField -> JvmField in test data
This commit is contained in:
Pavel V. Talanov
2015-10-07 20:19:05 +03:00
committed by Michael Bogdanov
parent bfaf806f47
commit 6cf9bfdb70
25 changed files with 342 additions and 109 deletions
@@ -65,15 +65,6 @@ public annotation class JvmMultifileClass
@Retention(AnnotationRetention.SOURCE)
public annotation class JvmSynthetic
/**
* Instructs the Kotlin compiler to generate a public backing field for this property.
*/
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.SOURCE)
@MustBeDocumented
@Deprecated("Use lateinit instead")
public annotation class publicField
/**
* This annotation indicates what exceptions should be declared by a function when compiled to a JVM method.
*
@@ -101,4 +92,11 @@ public annotation class Throws(public vararg val exceptionClasses: KClass<out Th
@Retention(AnnotationRetention.SOURCE)
internal annotation class JvmVersion(public val minimum: Int = 6, public val maximum: Int = 100)
/**
* Instructs the Kotlin compiler not to generate getters/setters for this property and expose it as a field.
*/
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.SOURCE)
@MustBeDocumented
public annotation class JvmField