[Native] Don't produce broken @Deprecated annotations in c-interop
#KT-58651
This commit is contained in:
committed by
Space Team
parent
706a4e9919
commit
2b913d7c47
+17
-15
@@ -370,14 +370,16 @@ private class MappingExtensions(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun AnnotationStub.map(): KmAnnotation {
|
fun AnnotationStub.map(): KmAnnotation {
|
||||||
fun Pair<String, String>.asAnnotationArgument() =
|
fun Pair<String, String>.asOptionalAnnotationArgument(): Pair<String, KmAnnotationArgument.StringValue>? {
|
||||||
(first to KmAnnotationArgument.StringValue(second)).takeIf { second.isNotEmpty() }
|
val (argumentName, argumentValue) = this
|
||||||
|
return if (argumentValue.isEmpty()) null else argumentName to KmAnnotationArgument.StringValue(argumentValue)
|
||||||
|
}
|
||||||
|
|
||||||
fun replaceWith(replaceWith: String) = KmAnnotationArgument.AnnotationValue(KmAnnotation(
|
fun replaceWith(replaceWith: String) = KmAnnotationArgument.AnnotationValue(KmAnnotation(
|
||||||
Classifier.topLevel("kotlin", "ReplaceWith").fqNameSerialized,
|
Classifier.topLevel("kotlin", "ReplaceWith").fqNameSerialized,
|
||||||
mapOfNotNull(
|
mapOfNotNull(
|
||||||
"imports" to KmAnnotationArgument.ArrayValue(emptyList()),
|
"imports" to KmAnnotationArgument.ArrayValue(emptyList()),
|
||||||
("expression" to replaceWith).asAnnotationArgument()
|
"expression" to KmAnnotationArgument.StringValue(replaceWith)
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
|
|
||||||
@@ -390,35 +392,35 @@ private class MappingExtensions(
|
|||||||
AnnotationStub.ObjC.ConsumesReceiver -> emptyMap()
|
AnnotationStub.ObjC.ConsumesReceiver -> emptyMap()
|
||||||
AnnotationStub.ObjC.ReturnsRetained -> emptyMap()
|
AnnotationStub.ObjC.ReturnsRetained -> emptyMap()
|
||||||
is AnnotationStub.ObjC.Method -> mapOfNotNull(
|
is AnnotationStub.ObjC.Method -> mapOfNotNull(
|
||||||
("selector" to selector).asAnnotationArgument(),
|
("selector" to selector).asOptionalAnnotationArgument(),
|
||||||
("encoding" to encoding).asAnnotationArgument(),
|
("encoding" to encoding).asOptionalAnnotationArgument(),
|
||||||
("isStret" to KmAnnotationArgument.BooleanValue(isStret))
|
("isStret" to KmAnnotationArgument.BooleanValue(isStret))
|
||||||
)
|
)
|
||||||
is AnnotationStub.ObjC.Direct -> mapOfNotNull(
|
is AnnotationStub.ObjC.Direct -> mapOfNotNull(
|
||||||
("symbol" to symbol).asAnnotationArgument(),
|
("symbol" to symbol).asOptionalAnnotationArgument(),
|
||||||
)
|
)
|
||||||
is AnnotationStub.ObjC.Factory -> mapOfNotNull(
|
is AnnotationStub.ObjC.Factory -> mapOfNotNull(
|
||||||
("selector" to selector).asAnnotationArgument(),
|
("selector" to selector).asOptionalAnnotationArgument(),
|
||||||
("encoding" to encoding).asAnnotationArgument(),
|
("encoding" to encoding).asOptionalAnnotationArgument(),
|
||||||
("isStret" to KmAnnotationArgument.BooleanValue(isStret))
|
("isStret" to KmAnnotationArgument.BooleanValue(isStret))
|
||||||
)
|
)
|
||||||
AnnotationStub.ObjC.Consumed -> emptyMap()
|
AnnotationStub.ObjC.Consumed -> emptyMap()
|
||||||
is AnnotationStub.ObjC.Constructor -> mapOfNotNull(
|
is AnnotationStub.ObjC.Constructor -> mapOfNotNull(
|
||||||
("designated" to KmAnnotationArgument.BooleanValue(designated)),
|
("designated" to KmAnnotationArgument.BooleanValue(designated)),
|
||||||
("initSelector" to selector).asAnnotationArgument()
|
("initSelector" to selector).asOptionalAnnotationArgument()
|
||||||
)
|
)
|
||||||
is AnnotationStub.ObjC.ExternalClass -> mapOfNotNull(
|
is AnnotationStub.ObjC.ExternalClass -> mapOfNotNull(
|
||||||
("protocolGetter" to protocolGetter).asAnnotationArgument(),
|
("protocolGetter" to protocolGetter).asOptionalAnnotationArgument(),
|
||||||
("binaryName" to binaryName).asAnnotationArgument()
|
("binaryName" to binaryName).asOptionalAnnotationArgument()
|
||||||
)
|
)
|
||||||
AnnotationStub.CCall.CString -> emptyMap()
|
AnnotationStub.CCall.CString -> emptyMap()
|
||||||
AnnotationStub.CCall.WCString -> emptyMap()
|
AnnotationStub.CCall.WCString -> emptyMap()
|
||||||
is AnnotationStub.CCall.Symbol -> mapOfNotNull(
|
is AnnotationStub.CCall.Symbol -> mapOfNotNull(
|
||||||
("id" to symbolName).asAnnotationArgument()
|
("id" to symbolName).asOptionalAnnotationArgument()
|
||||||
)
|
)
|
||||||
is AnnotationStub.CCall.CppClassConstructor -> emptyMap()
|
is AnnotationStub.CCall.CppClassConstructor -> emptyMap()
|
||||||
is AnnotationStub.CStruct -> mapOfNotNull(
|
is AnnotationStub.CStruct -> mapOfNotNull(
|
||||||
("spelling" to struct).asAnnotationArgument()
|
("spelling" to struct).asOptionalAnnotationArgument()
|
||||||
)
|
)
|
||||||
is AnnotationStub.CNaturalStruct ->
|
is AnnotationStub.CNaturalStruct ->
|
||||||
error("@CNaturalStruct should not be used for Kotlin/Native interop")
|
error("@CNaturalStruct should not be used for Kotlin/Native interop")
|
||||||
@@ -426,12 +428,12 @@ private class MappingExtensions(
|
|||||||
"value" to KmAnnotationArgument.LongValue(length)
|
"value" to KmAnnotationArgument.LongValue(length)
|
||||||
)
|
)
|
||||||
is AnnotationStub.Deprecated -> mapOfNotNull(
|
is AnnotationStub.Deprecated -> mapOfNotNull(
|
||||||
("message" to message).asAnnotationArgument(),
|
("message" to message).asOptionalAnnotationArgument(),
|
||||||
("replaceWith" to replaceWith(replaceWith)),
|
("replaceWith" to replaceWith(replaceWith)),
|
||||||
("level" to deprecationLevel(level))
|
("level" to deprecationLevel(level))
|
||||||
)
|
)
|
||||||
is AnnotationStub.CEnumEntryAlias -> mapOfNotNull(
|
is AnnotationStub.CEnumEntryAlias -> mapOfNotNull(
|
||||||
("entryName" to entryName).asAnnotationArgument()
|
("entryName" to entryName).asOptionalAnnotationArgument()
|
||||||
)
|
)
|
||||||
is AnnotationStub.CEnumVarTypeSize -> mapOfNotNull(
|
is AnnotationStub.CEnumVarTypeSize -> mapOfNotNull(
|
||||||
("size" to KmAnnotationArgument.IntValue(size))
|
("size" to KmAnnotationArgument.IntValue(size))
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
enum class ForwardEnumPOD private constructor(value: Int) : Enum<ForwardEnumPOD>, CEnum {
|
enum class ForwardEnumPOD private constructor(value: Int) : Enum<ForwardEnumPOD>, CEnum {
|
||||||
var value: ForwardEnumPOD
|
var value: ForwardEnumPOD
|
||||||
@Deprecated(level = DeprecationLevel.WARNING, message = "Will be removed.", replaceWith = ReplaceWith(imports = {})) fun byValue(value: Int): ForwardEnumPOD
|
@Deprecated(level = DeprecationLevel.WARNING, message = "Will be removed.", replaceWith = ReplaceWith(expression = "", imports = {})) fun byValue(value: Int): ForwardEnumPOD
|
||||||
var varPOD: ForwardEnumPOD
|
var varPOD: ForwardEnumPOD
|
||||||
@CCall(id = "knifunptr_pod10_varPOD_getter") get
|
@CCall(id = "knifunptr_pod10_varPOD_getter") get
|
||||||
@CCall(id = "knifunptr_pod11_varPOD_setter") set
|
@CCall(id = "knifunptr_pod11_varPOD_setter") set
|
||||||
+1
-1
@@ -2,4 +2,4 @@
|
|||||||
@ConstantValue.Int(value = 0) enum entry Value1POD
|
@ConstantValue.Int(value = 0) enum entry Value1POD
|
||||||
@ConstantValue.Int(value = 1) enum entry Value2POD
|
@ConstantValue.Int(value = 1) enum entry Value2POD
|
||||||
var value: ForwardEnumPOD
|
var value: ForwardEnumPOD
|
||||||
@Deprecated(level = DeprecationLevel.WARNING, message = "Will be removed.", replaceWith = ReplaceWith(imports = {})) fun byValue(value: Int): ForwardEnumPOD
|
@Deprecated(level = DeprecationLevel.WARNING, message = "Will be removed.", replaceWith = ReplaceWith(expression = "", imports = {})) fun byValue(value: Int): ForwardEnumPOD
|
||||||
Vendored
+1
-1
@@ -5,7 +5,7 @@ package pod1 {
|
|||||||
var __ap: COpaquePointer? /* = CPointer<out CPointed>? */
|
var __ap: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 0.toLong()) get
|
@CStruct.MemberAt(offset = 0.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 0.toLong()) set
|
@CStruct.MemberAt(offset = 0.toLong()) set
|
||||||
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -17,7 +17,7 @@ package pod1 {
|
|||||||
var __vr_top: COpaquePointer? /* = CPointer<out CPointed>? */
|
var __vr_top: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) get
|
@CStruct.MemberAt(offset = 16.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) set
|
@CStruct.MemberAt(offset = 16.toLong()) set
|
||||||
@CStruct.VarType(align = 8, size = 32.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 8, size = 32.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ package pod1 {
|
|||||||
var reg_save_area: COpaquePointer? /* = CPointer<out CPointed>? */
|
var reg_save_area: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) get
|
@CStruct.MemberAt(offset = 16.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) set
|
@CStruct.MemberAt(offset = 16.toLong()) set
|
||||||
@CStruct.VarType(align = 8, size = 24.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 8, size = 24.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -5,7 +5,7 @@ package pod1 {
|
|||||||
var __ap: COpaquePointer? /* = CPointer<out CPointed>? */
|
var __ap: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 0.toLong()) get
|
@CStruct.MemberAt(offset = 0.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 0.toLong()) set
|
@CStruct.MemberAt(offset = 0.toLong()) set
|
||||||
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -17,7 +17,7 @@ package pod1 {
|
|||||||
var __vr_top: COpaquePointer? /* = CPointer<out CPointed>? */
|
var __vr_top: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) get
|
@CStruct.MemberAt(offset = 16.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) set
|
@CStruct.MemberAt(offset = 16.toLong()) set
|
||||||
@CStruct.VarType(align = 8, size = 32.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 8, size = 32.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -14,7 +14,7 @@ package pod1 {
|
|||||||
var reg_save_area: COpaquePointer? /* = CPointer<out CPointed>? */
|
var reg_save_area: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) get
|
@CStruct.MemberAt(offset = 16.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) set
|
@CStruct.MemberAt(offset = 16.toLong()) set
|
||||||
@CStruct.VarType(align = 8, size = 24.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 8, size = 24.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ package pod1 {
|
|||||||
var __ap: COpaquePointer? /* = CPointer<out CPointed>? */
|
var __ap: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 0.toLong()) get
|
@CStruct.MemberAt(offset = 0.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 0.toLong()) set
|
@CStruct.MemberAt(offset = 0.toLong()) set
|
||||||
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ package pod1 {
|
|||||||
var __vr_top: COpaquePointer? /* = CPointer<out CPointed>? */
|
var __vr_top: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) get
|
@CStruct.MemberAt(offset = 16.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) set
|
@CStruct.MemberAt(offset = 16.toLong()) set
|
||||||
@CStruct.VarType(align = 8, size = 32.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 8, size = 32.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ package pod1 {
|
|||||||
var reg_save_area: COpaquePointer? /* = CPointer<out CPointed>? */
|
var reg_save_area: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) get
|
@CStruct.MemberAt(offset = 16.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) set
|
@CStruct.MemberAt(offset = 16.toLong()) set
|
||||||
@CStruct.VarType(align = 8, size = 24.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 8, size = 24.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -5,7 +5,7 @@ package pod1 {
|
|||||||
var __ap: COpaquePointer? /* = CPointer<out CPointed>? */
|
var __ap: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 0.toLong()) get
|
@CStruct.MemberAt(offset = 0.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 0.toLong()) set
|
@CStruct.MemberAt(offset = 0.toLong()) set
|
||||||
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -17,7 +17,7 @@ package pod1 {
|
|||||||
var __vr_top: COpaquePointer? /* = CPointer<out CPointed>? */
|
var __vr_top: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) get
|
@CStruct.MemberAt(offset = 16.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) set
|
@CStruct.MemberAt(offset = 16.toLong()) set
|
||||||
@CStruct.VarType(align = 8, size = 32.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 8, size = 32.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -14,7 +14,7 @@ package pod1 {
|
|||||||
var reg_save_area: COpaquePointer? /* = CPointer<out CPointed>? */
|
var reg_save_area: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) get
|
@CStruct.MemberAt(offset = 16.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) set
|
@CStruct.MemberAt(offset = 16.toLong()) set
|
||||||
@CStruct.VarType(align = 8, size = 24.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 8, size = 24.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -5,7 +5,7 @@ package pod1 {
|
|||||||
var __ap: COpaquePointer? /* = CPointer<out CPointed>? */
|
var __ap: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 0.toLong()) get
|
@CStruct.MemberAt(offset = 0.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 0.toLong()) set
|
@CStruct.MemberAt(offset = 0.toLong()) set
|
||||||
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -17,7 +17,7 @@ package pod1 {
|
|||||||
var __vr_top: COpaquePointer? /* = CPointer<out CPointed>? */
|
var __vr_top: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) get
|
@CStruct.MemberAt(offset = 16.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) set
|
@CStruct.MemberAt(offset = 16.toLong()) set
|
||||||
@CStruct.VarType(align = 8, size = 32.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 8, size = 32.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ package pod1 {
|
|||||||
var reg_save_area: COpaquePointer? /* = CPointer<out CPointed>? */
|
var reg_save_area: COpaquePointer? /* = CPointer<out CPointed>? */
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) get
|
@CStruct.MemberAt(offset = 16.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 16.toLong()) set
|
@CStruct.MemberAt(offset = 16.toLong()) set
|
||||||
@CStruct.VarType(align = 8, size = 24.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 8, size = 24.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+3
-3
@@ -5,7 +5,7 @@ package pod1 {
|
|||||||
var x: Int
|
var x: Int
|
||||||
@CStruct.MemberAt(offset = 0.toLong()) get
|
@CStruct.MemberAt(offset = 0.toLong()) get
|
||||||
@CStruct.MemberAt(offset = 0.toLong()) set
|
@CStruct.MemberAt(offset = 0.toLong()) set
|
||||||
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CStructVar.Type
|
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class NXMouseButton private constructor(value: UInt) : Enum<NXMouseButton>, CEnum {
|
enum class NXMouseButton private constructor(value: UInt) : Enum<NXMouseButton>, CEnum {
|
||||||
@@ -14,11 +14,11 @@ package pod1 {
|
|||||||
|
|
||||||
class Var constructor(rawPtr: NativePtr /* = NativePtr */) : CEnumVar {
|
class Var constructor(rawPtr: NativePtr /* = NativePtr */) : CEnumVar {
|
||||||
var value: NXMouseButton
|
var value: NXMouseButton
|
||||||
@CEnumVarTypeSize(size = 4) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CPrimitiveVar.Type
|
@CEnumVarTypeSize(size = 4) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CPrimitiveVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
@Deprecated(level = DeprecationLevel.WARNING, message = "Will be removed.", replaceWith = ReplaceWith(imports = {})) fun byValue(value: UInt): NXMouseButton
|
@Deprecated(level = DeprecationLevel.WARNING, message = "Will be removed.", replaceWith = ReplaceWith(expression = "", imports = {})) fun byValue(value: UInt): NXMouseButton
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+4
-4
@@ -6,11 +6,11 @@ package pod1 {
|
|||||||
|
|
||||||
class Var constructor(rawPtr: NativePtr /* = NativePtr */) : CEnumVar {
|
class Var constructor(rawPtr: NativePtr /* = NativePtr */) : CEnumVar {
|
||||||
var value: EnumWithoutConstant
|
var value: EnumWithoutConstant
|
||||||
@CEnumVarTypeSize(size = 8) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CPrimitiveVar.Type
|
@CEnumVarTypeSize(size = 8) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CPrimitiveVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
@Deprecated(level = DeprecationLevel.WARNING, message = "Will be removed.", replaceWith = ReplaceWith(imports = {})) fun byValue(value: Long): EnumWithoutConstant
|
@Deprecated(level = DeprecationLevel.WARNING, message = "Will be removed.", replaceWith = ReplaceWith(expression = "", imports = {})) fun byValue(value: Long): EnumWithoutConstant
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -22,11 +22,11 @@ package pod1 {
|
|||||||
|
|
||||||
class Var constructor(rawPtr: NativePtr /* = NativePtr */) : CEnumVar {
|
class Var constructor(rawPtr: NativePtr /* = NativePtr */) : CEnumVar {
|
||||||
var value: ForwardEnum
|
var value: ForwardEnum
|
||||||
@CEnumVarTypeSize(size = 8) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(imports = {})) companion object : CPrimitiveVar.Type
|
@CEnumVarTypeSize(size = 8) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CPrimitiveVar.Type
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
@Deprecated(level = DeprecationLevel.WARNING, message = "Will be removed.", replaceWith = ReplaceWith(imports = {})) fun byValue(value: Long): ForwardEnum
|
@Deprecated(level = DeprecationLevel.WARNING, message = "Will be removed.", replaceWith = ReplaceWith(expression = "", imports = {})) fun byValue(value: Long): ForwardEnum
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+4
-4
@@ -30,11 +30,11 @@ package dependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
package dependency {
|
package dependency {
|
||||||
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "categoryClassMethod") @Deprecated(level = DeprecationLevel.WARNING, message = "Use class method instead", replaceWith = ReplaceWith(imports = {})) external fun MyClassMeta.categoryClassMethod()
|
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "categoryClassMethod") @Deprecated(level = DeprecationLevel.WARNING, message = "Use class method instead", replaceWith = ReplaceWith(expression = "", imports = {})) external fun MyClassMeta.categoryClassMethod()
|
||||||
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "categoryClassMethod") external fun SkipClassMeta.categoryClassMethod()
|
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "categoryClassMethod") external fun SkipClassMeta.categoryClassMethod()
|
||||||
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "categoryClassMethod2") @Deprecated(level = DeprecationLevel.WARNING, message = "Use class method instead", replaceWith = ReplaceWith(imports = {})) external fun MyClassMeta.categoryClassMethod2()
|
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "categoryClassMethod2") @Deprecated(level = DeprecationLevel.WARNING, message = "Use class method instead", replaceWith = ReplaceWith(expression = "", imports = {})) external fun MyClassMeta.categoryClassMethod2()
|
||||||
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "categoryInstanceMethod") @Deprecated(level = DeprecationLevel.WARNING, message = "Use instance method instead", replaceWith = ReplaceWith(imports = {})) external fun MyClass.categoryInstanceMethod()
|
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "categoryInstanceMethod") @Deprecated(level = DeprecationLevel.WARNING, message = "Use instance method instead", replaceWith = ReplaceWith(expression = "", imports = {})) external fun MyClass.categoryInstanceMethod()
|
||||||
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "categoryInstanceMethod") external fun SkipClass.categoryInstanceMethod()
|
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "categoryInstanceMethod") external fun SkipClass.categoryInstanceMethod()
|
||||||
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "categoryInstanceMethod2") @Deprecated(level = DeprecationLevel.WARNING, message = "Use instance method instead", replaceWith = ReplaceWith(imports = {})) external fun MyClass.categoryInstanceMethod2()
|
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "categoryInstanceMethod2") @Deprecated(level = DeprecationLevel.WARNING, message = "Use instance method instead", replaceWith = ReplaceWith(expression = "", imports = {})) external fun MyClass.categoryInstanceMethod2()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Vendored
+5
-5
@@ -23,10 +23,10 @@ package dependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
package dependency {
|
package dependency {
|
||||||
@Deprecated(level = DeprecationLevel.WARNING, message = "Use instance property instead", replaceWith = ReplaceWith(imports = {})) var MyClass.categoryProperty: Float
|
@Deprecated(level = DeprecationLevel.WARNING, message = "Use instance property instead", replaceWith = ReplaceWith(expression = "", imports = {})) var MyClass.categoryProperty: Float
|
||||||
@ObjCMethod(encoding = "f16@0:8", isStret = false, selector = "categoryProperty") @Deprecated(level = DeprecationLevel.WARNING, message = "Use instance method instead", replaceWith = ReplaceWith(imports = {})) get
|
@ObjCMethod(encoding = "f16@0:8", isStret = false, selector = "categoryProperty") @Deprecated(level = DeprecationLevel.WARNING, message = "Use instance method instead", replaceWith = ReplaceWith(expression = "", imports = {})) get
|
||||||
@ObjCMethod(encoding = "v20@0:8f16", isStret = false, selector = "setCategoryProperty:") @Deprecated(level = DeprecationLevel.WARNING, message = "Use instance method instead", replaceWith = ReplaceWith(imports = {})) set
|
@ObjCMethod(encoding = "v20@0:8f16", isStret = false, selector = "setCategoryProperty:") @Deprecated(level = DeprecationLevel.WARNING, message = "Use instance method instead", replaceWith = ReplaceWith(expression = "", imports = {})) set
|
||||||
@ObjCMethod(encoding = "f16@0:8", isStret = false, selector = "categoryProperty") @Deprecated(level = DeprecationLevel.WARNING, message = "Use instance method instead", replaceWith = ReplaceWith(imports = {})) external fun MyClass.categoryProperty(): Float
|
@ObjCMethod(encoding = "f16@0:8", isStret = false, selector = "categoryProperty") @Deprecated(level = DeprecationLevel.WARNING, message = "Use instance method instead", replaceWith = ReplaceWith(expression = "", imports = {})) external fun MyClass.categoryProperty(): Float
|
||||||
@ObjCMethod(encoding = "v20@0:8f16", isStret = false, selector = "setCategoryProperty:") @Deprecated(level = DeprecationLevel.WARNING, message = "Use instance method instead", replaceWith = ReplaceWith(imports = {})) external fun MyClass.setCategoryProperty(categoryProperty: Float)
|
@ObjCMethod(encoding = "v20@0:8f16", isStret = false, selector = "setCategoryProperty:") @Deprecated(level = DeprecationLevel.WARNING, message = "Use instance method instead", replaceWith = ReplaceWith(expression = "", imports = {})) external fun MyClass.setCategoryProperty(categoryProperty: Float)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user