[K/N] Add @SinceKotlin for ObjC annotations #KT-57197
This commit is contained in:
committed by
Space Team
parent
d7d7620db2
commit
352316ba9f
@@ -99,6 +99,7 @@ public actual annotation class CName(actual val externName: String = "", actual
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
@ExperimentalObjCName
|
||||
@SinceKotlin("1.8")
|
||||
public actual annotation class ObjCName(actual val name: String = "", actual val swiftName: String = "", actual val exact: Boolean = false)
|
||||
|
||||
/**
|
||||
@@ -113,6 +114,7 @@ public actual annotation class ObjCName(actual val name: String = "", actual val
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
@ExperimentalObjCRefinement
|
||||
@SinceKotlin("1.8")
|
||||
public actual annotation class HidesFromObjC
|
||||
|
||||
/**
|
||||
@@ -123,6 +125,7 @@ public actual annotation class HidesFromObjC
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
@ExperimentalObjCRefinement
|
||||
@SinceKotlin("1.8")
|
||||
public actual annotation class HiddenFromObjC
|
||||
|
||||
/**
|
||||
@@ -141,6 +144,7 @@ public actual annotation class HiddenFromObjC
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
@ExperimentalObjCRefinement
|
||||
@SinceKotlin("1.8")
|
||||
public actual annotation class RefinesInSwift
|
||||
|
||||
/**
|
||||
@@ -154,4 +158,5 @@ public actual annotation class RefinesInSwift
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
@ExperimentalObjCRefinement
|
||||
@SinceKotlin("1.8")
|
||||
public actual annotation class ShouldRefineInSwift
|
||||
|
||||
@@ -34,6 +34,7 @@ public inline infix fun kotlin.Short.xor(other: kotlin.Short): kotlin.Short
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.ANNOTATION_CLASS})
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@kotlin.annotation.MustBeDocumented
|
||||
@kotlin.SinceKotlin(version = "1.8")
|
||||
public final annotation class ExperimentalObjCName : kotlin.Annotation {
|
||||
public constructor ExperimentalObjCName()
|
||||
}
|
||||
@@ -42,6 +43,7 @@ public final annotation class ExperimentalObjCName : kotlin.Annotation {
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.ANNOTATION_CLASS})
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@kotlin.annotation.MustBeDocumented
|
||||
@kotlin.SinceKotlin(version = "1.8")
|
||||
public final annotation class ExperimentalObjCRefinement : kotlin.Annotation {
|
||||
public constructor ExperimentalObjCRefinement()
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ public inline infix fun kotlin.Short.xor(other: kotlin.Short): kotlin.Short
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.ANNOTATION_CLASS})
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@kotlin.annotation.MustBeDocumented
|
||||
@kotlin.SinceKotlin(version = "1.8")
|
||||
public final annotation class ExperimentalObjCName : kotlin.Annotation {
|
||||
public constructor ExperimentalObjCName()
|
||||
}
|
||||
@@ -42,6 +43,7 @@ public final annotation class ExperimentalObjCName : kotlin.Annotation {
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.ANNOTATION_CLASS})
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.BINARY)
|
||||
@kotlin.annotation.MustBeDocumented
|
||||
@kotlin.SinceKotlin(version = "1.8")
|
||||
public final annotation class ExperimentalObjCRefinement : kotlin.Annotation {
|
||||
public constructor ExperimentalObjCRefinement()
|
||||
}
|
||||
|
||||
@@ -65,6 +65,7 @@ expect annotation class FreezingIsDeprecated
|
||||
@MustBeDocumented
|
||||
@OptionalExpectation
|
||||
@ExperimentalObjCName
|
||||
@SinceKotlin("1.8")
|
||||
public expect annotation class ObjCName(val name: String = "", val swiftName: String = "", val exact: Boolean = false)
|
||||
|
||||
/**
|
||||
@@ -80,6 +81,7 @@ public expect annotation class ObjCName(val name: String = "", val swiftName: St
|
||||
@MustBeDocumented
|
||||
@OptionalExpectation
|
||||
@ExperimentalObjCRefinement
|
||||
@SinceKotlin("1.8")
|
||||
public expect annotation class HidesFromObjC()
|
||||
|
||||
/**
|
||||
@@ -91,6 +93,7 @@ public expect annotation class HidesFromObjC()
|
||||
@MustBeDocumented
|
||||
@OptionalExpectation
|
||||
@ExperimentalObjCRefinement
|
||||
@SinceKotlin("1.8")
|
||||
public expect annotation class HiddenFromObjC()
|
||||
|
||||
/**
|
||||
@@ -110,6 +113,7 @@ public expect annotation class HiddenFromObjC()
|
||||
@MustBeDocumented
|
||||
@OptionalExpectation
|
||||
@ExperimentalObjCRefinement
|
||||
@SinceKotlin("1.8")
|
||||
public expect annotation class RefinesInSwift()
|
||||
|
||||
/**
|
||||
@@ -124,4 +128,5 @@ public expect annotation class RefinesInSwift()
|
||||
@MustBeDocumented
|
||||
@OptionalExpectation
|
||||
@ExperimentalObjCRefinement
|
||||
@SinceKotlin("1.8")
|
||||
public expect annotation class ShouldRefineInSwift()
|
||||
|
||||
@@ -12,4 +12,5 @@ package kotlin.experimental
|
||||
@Target(AnnotationTarget.ANNOTATION_CLASS)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
@SinceKotlin("1.8")
|
||||
public annotation class ExperimentalObjCName
|
||||
|
||||
@@ -12,4 +12,5 @@ package kotlin.experimental
|
||||
@Target(AnnotationTarget.ANNOTATION_CLASS)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
@SinceKotlin("1.8")
|
||||
public annotation class ExperimentalObjCRefinement
|
||||
|
||||
Reference in New Issue
Block a user