[WASM] Introduce internal ExperimentalNativeApi
To be able to OptIn usages in shared native-wasm directory.
This commit is contained in:
committed by
Space Team
parent
b6c2ce2dc8
commit
c1fb6528aa
@@ -0,0 +1,35 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||||
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package kotlin.experimental
|
||||||
|
|
||||||
|
import kotlin.annotation.AnnotationTarget.*
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation marks the Kotlin/Native-only standard library API that is considered experimental and is not subject to the
|
||||||
|
* [general compatibility guarantees](https://kotlinlang.org/docs/reference/evolution/components-stability.html) given for the standard library:
|
||||||
|
* the behavior of such API may be changed or the API may be removed completely in any further release.
|
||||||
|
*
|
||||||
|
* This is an internal copy of the public K/N annotation.
|
||||||
|
* It is used to [OptIn] experimental K/N API used in the shared native-wasm directory.
|
||||||
|
*/
|
||||||
|
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
|
||||||
|
@Retention(AnnotationRetention.BINARY)
|
||||||
|
@Target(
|
||||||
|
AnnotationTarget.CLASS,
|
||||||
|
AnnotationTarget.ANNOTATION_CLASS,
|
||||||
|
AnnotationTarget.PROPERTY,
|
||||||
|
AnnotationTarget.FIELD,
|
||||||
|
AnnotationTarget.LOCAL_VARIABLE,
|
||||||
|
AnnotationTarget.VALUE_PARAMETER,
|
||||||
|
AnnotationTarget.CONSTRUCTOR,
|
||||||
|
AnnotationTarget.FUNCTION,
|
||||||
|
AnnotationTarget.PROPERTY_GETTER,
|
||||||
|
AnnotationTarget.PROPERTY_SETTER,
|
||||||
|
AnnotationTarget.TYPEALIAS
|
||||||
|
)
|
||||||
|
@MustBeDocumented
|
||||||
|
@SinceKotlin("1.9")
|
||||||
|
internal annotation class ExperimentalNativeApi
|
||||||
Reference in New Issue
Block a user