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,
|
||||
TYPEALIAS
|
||||
)
|
||||
@MustBeDocumented
|
||||
@ExperimentalStdlibApi
|
||||
@SinceKotlin("1.3") // TODO: Remove experimental status from itself and advance SinceKotlin to 1.4
|
||||
public annotation class ExperimentalStdlibApi
|
||||
|
||||
@@ -17,6 +17,7 @@ import kotlin.internal.RequireKotlinVersionKind
|
||||
* or by using the compiler argument `-Xuse-experimental=kotlin.ExperimentalMultiplatform`.
|
||||
*/
|
||||
@Experimental
|
||||
@MustBeDocumented
|
||||
@Target(
|
||||
CLASS,
|
||||
ANNOTATION_CLASS,
|
||||
|
||||
@@ -19,6 +19,7 @@ import kotlin.internal.InlineOnly
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@SinceKotlin("1.3")
|
||||
@Experimental
|
||||
@MustBeDocumented
|
||||
public annotation class ExperimentalContracts
|
||||
|
||||
/**
|
||||
|
||||
@@ -13,6 +13,7 @@ package kotlin.experimental
|
||||
* or by using the compiler argument `-Xuse-experimental=kotlin.experimental.ExperimentalTypeInference`.
|
||||
*/
|
||||
@Experimental(level = Experimental.Level.ERROR)
|
||||
@MustBeDocumented
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(AnnotationTarget.ANNOTATION_CLASS)
|
||||
@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.
|
||||
*/
|
||||
@Experimental(level = Experimental.Level.WARNING)
|
||||
@MustBeDocumented
|
||||
@Target(CLASS, ANNOTATION_CLASS, PROPERTY, FIELD, LOCAL_VARIABLE, VALUE_PARAMETER, CONSTRUCTOR, FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER, TYPEALIAS)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@RequireKotlin("1.2.50", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
|
||||
|
||||
Reference in New Issue
Block a user