Docs: mark all experimental annotations as MustBeDocumented
So that they are shown in the docs of annotated experimental API
This commit is contained in:
@@ -29,6 +29,7 @@ import kotlin.annotation.AnnotationTarget.*
|
|||||||
PROPERTY_SETTER,
|
PROPERTY_SETTER,
|
||||||
TYPEALIAS
|
TYPEALIAS
|
||||||
)
|
)
|
||||||
|
@MustBeDocumented
|
||||||
@ExperimentalStdlibApi
|
@ExperimentalStdlibApi
|
||||||
@SinceKotlin("1.3") // TODO: Remove experimental status from itself and advance SinceKotlin to 1.4
|
@SinceKotlin("1.3") // TODO: Remove experimental status from itself and advance SinceKotlin to 1.4
|
||||||
public annotation class ExperimentalStdlibApi
|
public annotation class ExperimentalStdlibApi
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import kotlin.internal.RequireKotlinVersionKind
|
|||||||
* or by using the compiler argument `-Xuse-experimental=kotlin.ExperimentalMultiplatform`.
|
* or by using the compiler argument `-Xuse-experimental=kotlin.ExperimentalMultiplatform`.
|
||||||
*/
|
*/
|
||||||
@Experimental
|
@Experimental
|
||||||
|
@MustBeDocumented
|
||||||
@Target(
|
@Target(
|
||||||
CLASS,
|
CLASS,
|
||||||
ANNOTATION_CLASS,
|
ANNOTATION_CLASS,
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import kotlin.internal.InlineOnly
|
|||||||
@Retention(AnnotationRetention.BINARY)
|
@Retention(AnnotationRetention.BINARY)
|
||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.3")
|
||||||
@Experimental
|
@Experimental
|
||||||
|
@MustBeDocumented
|
||||||
public annotation class ExperimentalContracts
|
public annotation class ExperimentalContracts
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ package kotlin.experimental
|
|||||||
* or by using the compiler argument `-Xuse-experimental=kotlin.experimental.ExperimentalTypeInference`.
|
* or by using the compiler argument `-Xuse-experimental=kotlin.experimental.ExperimentalTypeInference`.
|
||||||
*/
|
*/
|
||||||
@Experimental(level = Experimental.Level.ERROR)
|
@Experimental(level = Experimental.Level.ERROR)
|
||||||
|
@MustBeDocumented
|
||||||
@Retention(AnnotationRetention.BINARY)
|
@Retention(AnnotationRetention.BINARY)
|
||||||
@Target(AnnotationTarget.ANNOTATION_CLASS)
|
@Target(AnnotationTarget.ANNOTATION_CLASS)
|
||||||
@SinceKotlin("1.3")
|
@SinceKotlin("1.3")
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import kotlin.internal.RequireKotlinVersionKind
|
|||||||
* It's recommended to propagate the experimental status to the API that depends on unsigned types by annotating it with this annotation.
|
* It's recommended to propagate the experimental status to the API that depends on unsigned types by annotating it with this annotation.
|
||||||
*/
|
*/
|
||||||
@Experimental(level = Experimental.Level.WARNING)
|
@Experimental(level = Experimental.Level.WARNING)
|
||||||
|
@MustBeDocumented
|
||||||
@Target(CLASS, ANNOTATION_CLASS, PROPERTY, FIELD, LOCAL_VARIABLE, VALUE_PARAMETER, CONSTRUCTOR, FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER, TYPEALIAS)
|
@Target(CLASS, ANNOTATION_CLASS, PROPERTY, FIELD, LOCAL_VARIABLE, VALUE_PARAMETER, CONSTRUCTOR, FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER, TYPEALIAS)
|
||||||
@Retention(AnnotationRetention.BINARY)
|
@Retention(AnnotationRetention.BINARY)
|
||||||
@RequireKotlin("1.2.50", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
|
@RequireKotlin("1.2.50", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
|
||||||
|
|||||||
Reference in New Issue
Block a user