Add new internal annotation IntrinsicConstEvaluation

This commit is contained in:
Ivan Kylchik
2021-10-28 15:14:03 +03:00
committed by teamcity
parent 46dd6520af
commit 6f448820f0
4 changed files with 31 additions and 0 deletions
@@ -33,3 +33,12 @@ internal annotation class PureReifiable
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.BINARY)
internal annotation class PlatformDependent
/**
* When applied to a function or property, enables a compiler optimization that evaluates that function or property
* at compile-time and replaces calls to it with the computed result.
*/
@Target(AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.BINARY)
@SinceKotlin("1.7")
public annotation class IntrinsicConstEvaluation
@@ -0,0 +1,13 @@
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY})
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
@kotlin.SinceKotlin(version = "1.7")
public final annotation class IntrinsicConstEvaluation : kotlin.Annotation {
public constructor IntrinsicConstEvaluation()
}
/*∆*/
/*∆*/ @kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY})
/*∆*/ @kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
/*∆*/ @kotlin.SinceKotlin(version = "1.7")
/*∆*/ public final annotation class IntrinsicConstEvaluation : kotlin.Annotation {
/*∆*/ public constructor IntrinsicConstEvaluation()
/*∆*/ }
@@ -0,0 +1,6 @@
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY})
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
@kotlin.SinceKotlin(version = "1.7")
public final annotation class IntrinsicConstEvaluation : kotlin.Annotation {
public constructor IntrinsicConstEvaluation()
}
@@ -3150,6 +3150,9 @@ public abstract interface class kotlin/coroutines/jvm/internal/CoroutineStackFra
public abstract interface annotation class kotlin/experimental/ExperimentalTypeInference : java/lang/annotation/Annotation {
}
public abstract interface annotation class kotlin/internal/IntrinsicConstEvaluation : java/lang/annotation/Annotation {
}
public final class kotlin/internal/PlatformImplementationsKt {
public static final fun apiVersionIsAtLeast (III)Z
}