backend.native, runtime: implement @ExportTypeInfo
This commit is contained in:
committed by
Nikolay Igotti
parent
6bfbf1050b
commit
991c8ea905
@@ -1,5 +1,7 @@
|
||||
package kotlin_native
|
||||
|
||||
// TODO: shouldn't these annotation be located in 'kotlin_native.internal' package?
|
||||
|
||||
/**
|
||||
* Forces the compiler to use specified symbol name for the target `external` function.
|
||||
*
|
||||
@@ -7,5 +9,12 @@ package kotlin_native
|
||||
* so it should probably be allowed on `internal` and `private` functions only.
|
||||
*/
|
||||
@Target(AnnotationTarget.FUNCTION)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class SymbolName(val name: kotlin.String)
|
||||
|
||||
/**
|
||||
* Exports the TypeInfo of this class by given name to use it from runtime.
|
||||
*/
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
annotation class ExportTypeInfo(val name: kotlin.String)
|
||||
|
||||
Reference in New Issue
Block a user