Native: deprecate SymbolName annotation
This commit is contained in:
committed by
TeamCityServer
parent
3b3318ab06
commit
570d860217
@@ -195,6 +195,7 @@ targetList.each { target ->
|
|||||||
'-Xopt-in=kotlin.contracts.ExperimentalContracts',
|
'-Xopt-in=kotlin.contracts.ExperimentalContracts',
|
||||||
'-Xopt-in=kotlin.ExperimentalMultiplatform',
|
'-Xopt-in=kotlin.ExperimentalMultiplatform',
|
||||||
'-Xopt-in=kotlin.native.internal.InternalForKotlinNative',
|
'-Xopt-in=kotlin.native.internal.InternalForKotlinNative',
|
||||||
|
'-Xopt-in=kotlin.native.SymbolNameIsDeprecated',
|
||||||
'-Xallow-result-return-type',
|
'-Xallow-result-return-type',
|
||||||
*commonSrc.toList(),
|
*commonSrc.toList(),
|
||||||
*testAnnotationCommon.toList(),
|
*testAnnotationCommon.toList(),
|
||||||
|
|||||||
@@ -8,6 +8,21 @@ package kotlin.native
|
|||||||
import kotlin.reflect.KClass
|
import kotlin.reflect.KClass
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* [SymbolName] annotation is deprecated.
|
||||||
|
* See [KT-46649](https://youtrack.jetbrains.com/issue/KT-46649).
|
||||||
|
*/
|
||||||
|
@RequiresOptIn(
|
||||||
|
message = "@SymbolName annotation is deprecated. See https://youtrack.jetbrains.com/issue/KT-46649",
|
||||||
|
level = RequiresOptIn.Level.WARNING
|
||||||
|
)
|
||||||
|
@Target(AnnotationTarget.ANNOTATION_CLASS)
|
||||||
|
@Retention(value = AnnotationRetention.BINARY)
|
||||||
|
internal annotation class SymbolNameIsDeprecated
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This annotation is deprecated.
|
||||||
|
* See [KT-46649](https://youtrack.jetbrains.com/issue/KT-46649).
|
||||||
|
*
|
||||||
* Forces the compiler to use specified symbol name for the target `external` function.
|
* Forces the compiler to use specified symbol name for the target `external` function.
|
||||||
*
|
*
|
||||||
* TODO: changing symbol name breaks the binary compatibility,
|
* TODO: changing symbol name breaks the binary compatibility,
|
||||||
@@ -15,6 +30,7 @@ import kotlin.reflect.KClass
|
|||||||
*/
|
*/
|
||||||
@Target(AnnotationTarget.FUNCTION)
|
@Target(AnnotationTarget.FUNCTION)
|
||||||
@Retention(AnnotationRetention.BINARY)
|
@Retention(AnnotationRetention.BINARY)
|
||||||
|
@SymbolNameIsDeprecated
|
||||||
public annotation class SymbolName(val name: String)
|
public annotation class SymbolName(val name: String)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user