Native: make SymbolName internal
See ^KT-46649
This commit is contained in:
committed by
Space
parent
8bd1d7b2be
commit
5020d5f2f9
@@ -8,29 +8,30 @@ package kotlin.native
|
|||||||
import kotlin.reflect.KClass
|
import kotlin.reflect.KClass
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* [SymbolName] annotation is deprecated.
|
* [SymbolName] annotation is deprecated and became internal. Please avoid using it.
|
||||||
* See [KT-46649](https://youtrack.jetbrains.com/issue/KT-46649).
|
* It is dangerous when combined with the new experimental memory manager.
|
||||||
|
* If you absolutely need to use the annotation, please comment at
|
||||||
|
* [KT-46649](https://youtrack.jetbrains.com/issue/KT-46649).
|
||||||
*/
|
*/
|
||||||
@RequiresOptIn(
|
@RequiresOptIn(
|
||||||
message = "@SymbolName annotation is deprecated. See https://youtrack.jetbrains.com/issue/KT-46649",
|
message = "@SymbolName annotation is internal. " +
|
||||||
level = RequiresOptIn.Level.WARNING
|
"It is dangerous when combined with the new experimental memory manager. " +
|
||||||
|
"See https://youtrack.jetbrains.com/issue/KT-46649",
|
||||||
|
level = RequiresOptIn.Level.ERROR
|
||||||
)
|
)
|
||||||
@Target(AnnotationTarget.ANNOTATION_CLASS)
|
@Target(AnnotationTarget.ANNOTATION_CLASS)
|
||||||
@Retention(value = AnnotationRetention.BINARY)
|
@Retention(value = AnnotationRetention.BINARY)
|
||||||
internal annotation class SymbolNameIsDeprecated
|
internal annotation class SymbolNameIsInternal
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This annotation is deprecated.
|
* This annotation is deprecated and became internal. Please avoid using it.
|
||||||
* See [KT-46649](https://youtrack.jetbrains.com/issue/KT-46649).
|
* It is dangerous when combined with the new experimental memory manager.
|
||||||
*
|
* If you absolutely need to use the annotation, please comment at
|
||||||
* Forces the compiler to use specified symbol name for the target `external` function.
|
* [KT-46649](https://youtrack.jetbrains.com/issue/KT-46649).
|
||||||
*
|
|
||||||
* TODO: changing symbol name breaks the binary compatibility,
|
|
||||||
* so it should probably be allowed on `internal` and `private` functions only.
|
|
||||||
*/
|
*/
|
||||||
@Target(AnnotationTarget.FUNCTION)
|
@Target(AnnotationTarget.FUNCTION)
|
||||||
@Retention(AnnotationRetention.BINARY)
|
@Retention(AnnotationRetention.BINARY)
|
||||||
@SymbolNameIsDeprecated
|
@SymbolNameIsInternal
|
||||||
public annotation class SymbolName(val name: String)
|
public annotation class SymbolName(val name: String)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user