rra/ilgonmic/eager-like-native
[JS IR] Leave JsEagerInitialization until bootstrap update [JS IR] Fix js stdlib api [JS IR] Change annotation on eager initialization in sources [JS IR] Make eager initialization consistent with native Merge-request: KT-MR-5030
This commit is contained in:
@@ -193,6 +193,15 @@ public final external class Date {
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.PROPERTY})
|
||||
@kotlin.SinceKotlin(version = "1.6")
|
||||
@kotlin.Deprecated(message = "This annotation is a temporal migration assistance and may be removed in the future releases, please consider filing an issue about the case where it is needed")
|
||||
public final annotation class EagerInitialization : kotlin.Annotation {
|
||||
public constructor EagerInitialization()
|
||||
}
|
||||
|
||||
@kotlin.RequiresOptIn(level = Level.WARNING)
|
||||
@kotlin.annotation.MustBeDocumented
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@@ -225,14 +234,6 @@ public external interface JsClass<T : kotlin.Any> {
|
||||
public abstract val name: kotlin.String { get; }
|
||||
}
|
||||
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.PROPERTY})
|
||||
@kotlin.SinceKotlin(version = "1.6")
|
||||
public final annotation class JsEagerInitialization : kotlin.Annotation {
|
||||
public constructor JsEagerInitialization()
|
||||
}
|
||||
|
||||
@kotlin.js.ExperimentalJsExport
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION, AnnotationTarget.FILE})
|
||||
|
||||
@@ -192,6 +192,15 @@ public final external class Date {
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.PROPERTY})
|
||||
@kotlin.SinceKotlin(version = "1.6")
|
||||
@kotlin.Deprecated(message = "This annotation is a temporal migration assistance and may be removed in the future releases, please consider filing an issue about the case where it is needed")
|
||||
public final annotation class EagerInitialization : kotlin.Annotation {
|
||||
public constructor EagerInitialization()
|
||||
}
|
||||
|
||||
@kotlin.RequiresOptIn(level = Level.WARNING)
|
||||
@kotlin.annotation.MustBeDocumented
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@@ -224,14 +233,6 @@ public external interface JsClass<T : kotlin.Any> {
|
||||
public abstract val name: kotlin.String { get; }
|
||||
}
|
||||
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.PROPERTY})
|
||||
@kotlin.SinceKotlin(version = "1.6")
|
||||
public final annotation class JsEagerInitialization : kotlin.Annotation {
|
||||
public constructor JsEagerInitialization()
|
||||
}
|
||||
|
||||
@kotlin.js.ExperimentalJsExport
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION, AnnotationTarget.FILE})
|
||||
|
||||
@@ -63,14 +63,4 @@ public annotation class ExperimentalJsExport
|
||||
@Target(CLASS, PROPERTY, FUNCTION, FILE)
|
||||
@SinceKotlin("1.4")
|
||||
@OptionalExpectation
|
||||
public expect annotation class JsExport()
|
||||
|
||||
/**
|
||||
* Forces a top-level property to be initialized eagerly, opposed to lazily on the first access to file and/or property.
|
||||
*/
|
||||
@ExperimentalStdlibApi
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(AnnotationTarget.PROPERTY)
|
||||
@SinceKotlin("1.6")
|
||||
@OptionalExpectation
|
||||
public expect annotation class JsEagerInitialization
|
||||
public expect annotation class JsExport()
|
||||
@@ -199,4 +199,8 @@ public actual annotation class JsExport
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(AnnotationTarget.PROPERTY)
|
||||
@SinceKotlin("1.6")
|
||||
public actual annotation class JsEagerInitialization
|
||||
@Deprecated("This annotation is a temporal migration assistance and may be removed in the future releases, please consider filing an issue about the case where it is needed")
|
||||
public annotation class EagerInitialization
|
||||
|
||||
@Deprecated("It is necessary until bootstrap update", level = DeprecationLevel.HIDDEN)
|
||||
internal annotation class JsEagerInitialization
|
||||
|
||||
@@ -9,4 +9,5 @@ package kotlin.js
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(AnnotationTarget.PROPERTY)
|
||||
@SinceKotlin("1.6")
|
||||
public actual annotation class JsEagerInitialization
|
||||
@Deprecated("This annotation is a temporal migration assistance and may be removed in the future releases, please consider filing an issue about the case where it is needed")
|
||||
public annotation class EagerInitialization
|
||||
|
||||
Reference in New Issue
Block a user