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")
|
||||
|
||||
Reference in New Issue
Block a user