[K/N] KT-56464: implementation of HiddenFromObjC for classes in backend
This commit is contained in:
committed by
Space Team
parent
6651e6ed8c
commit
fce878d63a
@@ -107,12 +107,12 @@ public actual annotation class CName(actual val externName: String = "", actual
|
||||
public actual annotation class ObjCName(actual val name: String = "", actual val swiftName: String = "", actual val exact: Boolean = false)
|
||||
|
||||
/**
|
||||
* Meta-annotation that instructs the Kotlin compiler to remove the annotated function or property from the public Objective-C API.
|
||||
* Meta-annotation that instructs the Kotlin compiler to remove the annotated class, function or property from the public Objective-C API.
|
||||
*
|
||||
* Annotation processors that refine the public Objective-C API can annotate their annotations with this meta-annotation
|
||||
* to have the original declarations automatically removed from the public API.
|
||||
*
|
||||
* Note: only annotations with [AnnotationTarget.FUNCTION] and/or [AnnotationTarget.PROPERTY] are supported.
|
||||
* Note: only annotations with [AnnotationTarget.CLASS], [AnnotationTarget.FUNCTION] and/or [AnnotationTarget.PROPERTY] are supported.
|
||||
*/
|
||||
@Target(AnnotationTarget.ANNOTATION_CLASS)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@@ -122,10 +122,10 @@ public actual annotation class ObjCName(actual val name: String = "", actual val
|
||||
public actual annotation class HidesFromObjC
|
||||
|
||||
/**
|
||||
* Instructs the Kotlin compiler to remove this function or property from the public Objective-C API.
|
||||
* Instructs the Kotlin compiler to remove this class, function or property from the public Objective-C API.
|
||||
*/
|
||||
@HidesFromObjC
|
||||
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION)
|
||||
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
@ExperimentalObjCRefinement
|
||||
|
||||
Reference in New Issue
Block a user