[K/N] Add ObjCName annotation (#4815)
This commit is contained in:
@@ -0,0 +1,179 @@
|
||||
// FILE: kotlin.kt
|
||||
package kotlin.native
|
||||
|
||||
@Target(
|
||||
AnnotationTarget.CLASS,
|
||||
AnnotationTarget.PROPERTY,
|
||||
AnnotationTarget.VALUE_PARAMETER,
|
||||
AnnotationTarget.FUNCTION
|
||||
)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
public annotation class ObjCName(val name: String = "", val swiftName: String = "", val exact: Boolean = false)
|
||||
|
||||
// FILE: test.kt
|
||||
@ObjCName("ObjCClass", "SwiftClass")
|
||||
open class KotlinClass {
|
||||
@ObjCName("objCProperty")
|
||||
open var kotlinProperty: Int = 0
|
||||
@ObjCName(swiftName = "swiftFunction")
|
||||
open fun @receiver:ObjCName("objCReceiver") Int.kotlinFunction(
|
||||
@ObjCName("objCParam") kotlinParam: Int
|
||||
): Int = this + kotlinParam
|
||||
}
|
||||
|
||||
@ObjCName("ObjCSubClass", "SwiftSubClass")
|
||||
class KotlinSubClass: KotlinClass() {
|
||||
<!INAPPLICABLE_OBJC_NAME!>@ObjCName("objCProperty")<!>
|
||||
override var kotlinProperty: Int = 1
|
||||
<!INAPPLICABLE_OBJC_NAME!>@ObjCName(swiftName = "swiftFunction")<!>
|
||||
override fun <!INAPPLICABLE_OBJC_NAME!>@receiver:ObjCName("objCReceiver")<!> Int.kotlinFunction(
|
||||
<!INAPPLICABLE_OBJC_NAME!>@ObjCName("objCParam")<!> kotlinParam: Int
|
||||
): Int = this + kotlinParam * 2
|
||||
}
|
||||
|
||||
<!INVALID_OBJC_NAME!>@ObjCName()<!>
|
||||
val invalidObjCName: Int = 0
|
||||
|
||||
<!INVALID_OBJC_NAME_CHARS!>@ObjCName("validName", "invalid.name")<!>
|
||||
val invalidCharactersObjCNameA: Int = 0
|
||||
|
||||
<!INVALID_OBJC_NAME_CHARS!>@ObjCName("invalid.name", "validName")<!>
|
||||
val invalidCharactersObjCNameB: Int = 0
|
||||
|
||||
<!INVALID_OBJC_NAME_FIRST_CHAR!>@ObjCName("validName1", "1validName")<!>
|
||||
val invalidFirstCharacterObjCNameA: Int = 0
|
||||
|
||||
<!INVALID_OBJC_NAME_FIRST_CHAR!>@ObjCName("1validName", "validName1")<!>
|
||||
val invalidFirstCharacterObjCNameB: Int = 0
|
||||
|
||||
<!MISSING_EXACT_OBJC_NAME!>@ObjCName(swiftName = "SwiftMissingExactName", exact = true)<!>
|
||||
class MissingExactName
|
||||
|
||||
interface KotlinInterfaceA {
|
||||
@ObjCName("objCPropertyA", "swiftPropertyA")
|
||||
var kotlinPropertyA: Int
|
||||
@ObjCName("objCPropertyB", "swiftPropertyB")
|
||||
var kotlinPropertyB: Int
|
||||
@ObjCName("objCPropertyB")
|
||||
var kotlinPropertyC: Int
|
||||
@ObjCName(swiftName ="swiftPropertyB")
|
||||
var kotlinPropertyD: Int
|
||||
var kotlinPropertyE: Int
|
||||
var kotlinPropertyF: Int
|
||||
|
||||
@ObjCName("objCFunctionA", "swiftFunctionA")
|
||||
fun @receiver:ObjCName("objCReceiver", "swiftReceiver") Int.kotlinFunctionA(
|
||||
@ObjCName("objCParam", "swiftParam") kotlinParam: Int
|
||||
): Int
|
||||
@ObjCName("objCFunctionB", "swiftFunctionB")
|
||||
fun @receiver:ObjCName("objCReceiver", "swiftReceiver") Int.kotlinFunctionB(
|
||||
@ObjCName("objCParam", "swiftParam") kotlinParam: Int
|
||||
): Int
|
||||
@ObjCName("objCFunctionC", "swiftFunctionC")
|
||||
fun @receiver:ObjCName("objCReceiver", "swiftReceiver") Int.kotlinFunctionC(
|
||||
@ObjCName("objCParam", "swiftParam") kotlinParam: Int
|
||||
): Int
|
||||
@ObjCName("objCFunctionD", "swiftFunctionD")
|
||||
fun @receiver:ObjCName("objCReceiver", "swiftReceiver") Int.kotlinFunctionD(
|
||||
@ObjCName("objCParam", "swiftParam") kotlinParam: Int
|
||||
): Int
|
||||
@ObjCName("objCFunctionE", "swiftFunctionE")
|
||||
fun Int.kotlinFunctionE(@ObjCName("objCParam", "swiftParam") kotlinParam: Int): Int
|
||||
}
|
||||
|
||||
interface KotlinInterfaceB {
|
||||
@ObjCName("objCPropertyA", "swiftPropertyA")
|
||||
var kotlinPropertyA: Int
|
||||
@ObjCName("objCPropertyBB", "swiftPropertyB")
|
||||
var kotlinPropertyB: Int
|
||||
@ObjCName(swiftName ="swiftPropertyC")
|
||||
var kotlinPropertyC: Int
|
||||
@ObjCName("objCPropertyD")
|
||||
var kotlinPropertyD: Int
|
||||
@ObjCName("objCPropertyE")
|
||||
var kotlinPropertyE: Int
|
||||
var kotlinPropertyF: Int
|
||||
|
||||
@ObjCName("objCFunctionA", "swiftFunctionA")
|
||||
fun @receiver:ObjCName("objCReceiver", "swiftReceiver") Int.kotlinFunctionA(
|
||||
@ObjCName("objCParam", "swiftParam") kotlinParam: Int
|
||||
): Int
|
||||
@ObjCName("objCFunctionBB", "swiftFunctionB")
|
||||
fun @receiver:ObjCName("objCReceiver", "swiftReceiver") Int.kotlinFunctionB(
|
||||
@ObjCName("objCParam", "swiftParam") kotlinParam: Int
|
||||
): Int
|
||||
@ObjCName("objCFunctionC", "swiftFunctionC")
|
||||
fun @receiver:ObjCName("objCReceiverC", "swiftReceiver") Int.kotlinFunctionC(
|
||||
@ObjCName("objCParam", "swiftParam") kotlinParam: Int
|
||||
): Int
|
||||
@ObjCName("objCFunctionD", "swiftFunctionD")
|
||||
fun @receiver:ObjCName("objCReceiver", "swiftReceiver") Int.kotlinFunctionD(
|
||||
@ObjCName("objCParamD", "swiftParam") kotlinParam: Int
|
||||
): Int
|
||||
fun @receiver:ObjCName("objCFunctionE", "swiftFunctionE") Int.kotlinFunctionE(
|
||||
@ObjCName("objCParam", "swiftParam") kotlinParam: Int
|
||||
): Int
|
||||
}
|
||||
|
||||
class KotlinOverrideClass: KotlinInterfaceA, KotlinInterfaceB {
|
||||
override var kotlinPropertyA: Int = 0
|
||||
<!INCOMPATIBLE_OBJC_NAME_OVERRIDE!>override var kotlinPropertyB: Int = 0<!>
|
||||
<!INCOMPATIBLE_OBJC_NAME_OVERRIDE!>override var kotlinPropertyC: Int = 0<!>
|
||||
<!INCOMPATIBLE_OBJC_NAME_OVERRIDE!>override var kotlinPropertyD: Int = 0<!>
|
||||
<!INCOMPATIBLE_OBJC_NAME_OVERRIDE!>override var kotlinPropertyE: Int = 0<!>
|
||||
override var kotlinPropertyF: Int = 0
|
||||
|
||||
override fun Int.kotlinFunctionA(kotlinParam: Int): Int = this + kotlinParam
|
||||
<!INCOMPATIBLE_OBJC_NAME_OVERRIDE!>override fun Int.kotlinFunctionB(kotlinParam: Int): Int = this + kotlinParam<!>
|
||||
<!INCOMPATIBLE_OBJC_NAME_OVERRIDE!>override fun Int.kotlinFunctionC(kotlinParam: Int): Int = this + kotlinParam<!>
|
||||
<!INCOMPATIBLE_OBJC_NAME_OVERRIDE!>override fun Int.kotlinFunctionD(kotlinParam: Int): Int = this + kotlinParam<!>
|
||||
<!INCOMPATIBLE_OBJC_NAME_OVERRIDE!>override fun Int.kotlinFunctionE(kotlinParam: Int): Int = this + kotlinParam<!>
|
||||
}
|
||||
|
||||
@ObjCName("ObjCExactChecks", exact = true)
|
||||
class ExactChecks {
|
||||
<!INAPPLICABLE_EXACT_OBJC_NAME!>@ObjCName("objCProperty", exact = true)<!>
|
||||
var property: Int = 0
|
||||
<!INAPPLICABLE_EXACT_OBJC_NAME!>@ObjCName("objCFunction", exact = true)<!>
|
||||
fun <!INAPPLICABLE_EXACT_OBJC_NAME!>@receiver:ObjCName("objCReceiver", exact = true)<!> Int.function(
|
||||
<!INAPPLICABLE_EXACT_OBJC_NAME!>@ObjCName("objCParam", exact = true)<!> param: Int
|
||||
): Int = this * param
|
||||
}
|
||||
|
||||
@ObjCName("ObjCEnumExactChecks", exact = true)
|
||||
enum class EnumExactChecks {
|
||||
<!INAPPLICABLE_EXACT_OBJC_NAME!>@ObjCName("objCEntryOne", exact = true)<!>
|
||||
ENTRY_ONE,
|
||||
@ObjCName("objCEntryTwo")
|
||||
ENTRY_TWO
|
||||
}
|
||||
|
||||
open class Base {
|
||||
@ObjCName("foo1")
|
||||
open fun foo() {}
|
||||
}
|
||||
|
||||
interface I {
|
||||
@ObjCName("foo2")
|
||||
fun foo()
|
||||
}
|
||||
|
||||
<!INCOMPATIBLE_OBJC_NAME_OVERRIDE!>open class Derived : Base(), I<!>
|
||||
|
||||
open class Derived2 : Derived() {
|
||||
override fun foo() {}
|
||||
}
|
||||
|
||||
private const val exact = false
|
||||
private const val objcName = "nonLiteralArgsObjC"
|
||||
|
||||
@ObjCName(
|
||||
<!NON_LITERAL_OBJC_NAME_ARG!>objcName<!>,
|
||||
<!NON_LITERAL_OBJC_NAME_ARG!>"nonLiteralArgs" + "Swift"<!>,
|
||||
<!NON_LITERAL_OBJC_NAME_ARG!>exact<!>
|
||||
)
|
||||
val nonLiteralArgs: Int = 0
|
||||
|
||||
@ObjCName("invalidArgsObjC", <!CONSTANT_EXPECTED_TYPE_MISMATCH!>false<!>, <!TYPE_MISMATCH!>"not a boolean"<!>)
|
||||
val invalidArgs: Int = 0
|
||||
@@ -0,0 +1,163 @@
|
||||
package
|
||||
|
||||
private const val exact: kotlin.Boolean = false
|
||||
@kotlin.native.ObjCName(exact = "not a boolean", name = "invalidArgsObjC", swiftName = false) public val invalidArgs: kotlin.Int = 0
|
||||
@kotlin.native.ObjCName(name = "validName", swiftName = "invalid.name") public val invalidCharactersObjCNameA: kotlin.Int = 0
|
||||
@kotlin.native.ObjCName(name = "invalid.name", swiftName = "validName") public val invalidCharactersObjCNameB: kotlin.Int = 0
|
||||
@kotlin.native.ObjCName(name = "validName1", swiftName = "1validName") public val invalidFirstCharacterObjCNameA: kotlin.Int = 0
|
||||
@kotlin.native.ObjCName(name = "1validName", swiftName = "validName1") public val invalidFirstCharacterObjCNameB: kotlin.Int = 0
|
||||
@kotlin.native.ObjCName public val invalidObjCName: kotlin.Int = 0
|
||||
@kotlin.native.ObjCName(exact = false, name = "nonLiteralArgsObjC", swiftName = "nonLiteralArgsSwift") public val nonLiteralArgs: kotlin.Int = 0
|
||||
private const val objcName: kotlin.String = "nonLiteralArgsObjC"
|
||||
|
||||
public open class Base {
|
||||
public constructor Base()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@kotlin.native.ObjCName(name = "foo1") public open fun foo(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public open class Derived : Base, I {
|
||||
public constructor Derived()
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@kotlin.native.ObjCName(name = "foo1") public open override /*2*/ /*fake_override*/ fun foo(): kotlin.Unit
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public open class Derived2 : Derived {
|
||||
public constructor Derived2()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ fun foo(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.native.ObjCName(exact = true, name = "ObjCEnumExactChecks") public final enum class EnumExactChecks : kotlin.Enum<EnumExactChecks> {
|
||||
@kotlin.native.ObjCName(exact = true, name = "objCEntryOne") enum entry ENTRY_ONE
|
||||
|
||||
@kotlin.native.ObjCName(name = "objCEntryTwo") enum entry ENTRY_TWO
|
||||
|
||||
private constructor EnumExactChecks()
|
||||
@kotlin.internal.IntrinsicConstEvaluation public final override /*1*/ /*fake_override*/ val name: kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ val ordinal: kotlin.Int
|
||||
protected final override /*1*/ /*fake_override*/ fun clone(): kotlin.Any
|
||||
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: EnumExactChecks): kotlin.Int
|
||||
public final override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): EnumExactChecks
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<EnumExactChecks>
|
||||
}
|
||||
|
||||
@kotlin.native.ObjCName(exact = true, name = "ObjCExactChecks") public final class ExactChecks {
|
||||
public constructor ExactChecks()
|
||||
@kotlin.native.ObjCName(exact = true, name = "objCProperty") public final var property: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
@kotlin.native.ObjCName(exact = true, name = "objCFunction") public final fun @receiver:kotlin.native.ObjCName(exact = true, name = "objCReceiver") kotlin.Int.function(/*0*/ @kotlin.native.ObjCName(exact = true, name = "objCParam") param: kotlin.Int): kotlin.Int
|
||||
}
|
||||
|
||||
public interface I {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@kotlin.native.ObjCName(name = "foo2") public abstract fun foo(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@kotlin.native.ObjCName(name = "ObjCClass", swiftName = "SwiftClass") public open class KotlinClass {
|
||||
public constructor KotlinClass()
|
||||
@kotlin.native.ObjCName(name = "objCProperty") public open var kotlinProperty: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
@kotlin.native.ObjCName(swiftName = "swiftFunction") public open fun @receiver:kotlin.native.ObjCName(name = "objCReceiver") kotlin.Int.kotlinFunction(/*0*/ @kotlin.native.ObjCName(name = "objCParam") kotlinParam: kotlin.Int): kotlin.Int
|
||||
}
|
||||
|
||||
public interface KotlinInterfaceA {
|
||||
@kotlin.native.ObjCName(name = "objCPropertyA", swiftName = "swiftPropertyA") public abstract var kotlinPropertyA: kotlin.Int
|
||||
@kotlin.native.ObjCName(name = "objCPropertyB", swiftName = "swiftPropertyB") public abstract var kotlinPropertyB: kotlin.Int
|
||||
@kotlin.native.ObjCName(name = "objCPropertyB") public abstract var kotlinPropertyC: kotlin.Int
|
||||
@kotlin.native.ObjCName(swiftName = "swiftPropertyB") public abstract var kotlinPropertyD: kotlin.Int
|
||||
public abstract var kotlinPropertyE: kotlin.Int
|
||||
public abstract var kotlinPropertyF: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
@kotlin.native.ObjCName(name = "objCFunctionA", swiftName = "swiftFunctionA") public abstract fun @receiver:kotlin.native.ObjCName(name = "objCReceiver", swiftName = "swiftReceiver") kotlin.Int.kotlinFunctionA(/*0*/ @kotlin.native.ObjCName(name = "objCParam", swiftName = "swiftParam") kotlinParam: kotlin.Int): kotlin.Int
|
||||
@kotlin.native.ObjCName(name = "objCFunctionB", swiftName = "swiftFunctionB") public abstract fun @receiver:kotlin.native.ObjCName(name = "objCReceiver", swiftName = "swiftReceiver") kotlin.Int.kotlinFunctionB(/*0*/ @kotlin.native.ObjCName(name = "objCParam", swiftName = "swiftParam") kotlinParam: kotlin.Int): kotlin.Int
|
||||
@kotlin.native.ObjCName(name = "objCFunctionC", swiftName = "swiftFunctionC") public abstract fun @receiver:kotlin.native.ObjCName(name = "objCReceiver", swiftName = "swiftReceiver") kotlin.Int.kotlinFunctionC(/*0*/ @kotlin.native.ObjCName(name = "objCParam", swiftName = "swiftParam") kotlinParam: kotlin.Int): kotlin.Int
|
||||
@kotlin.native.ObjCName(name = "objCFunctionD", swiftName = "swiftFunctionD") public abstract fun @receiver:kotlin.native.ObjCName(name = "objCReceiver", swiftName = "swiftReceiver") kotlin.Int.kotlinFunctionD(/*0*/ @kotlin.native.ObjCName(name = "objCParam", swiftName = "swiftParam") kotlinParam: kotlin.Int): kotlin.Int
|
||||
@kotlin.native.ObjCName(name = "objCFunctionE", swiftName = "swiftFunctionE") public abstract fun kotlin.Int.kotlinFunctionE(/*0*/ @kotlin.native.ObjCName(name = "objCParam", swiftName = "swiftParam") kotlinParam: kotlin.Int): kotlin.Int
|
||||
}
|
||||
|
||||
public interface KotlinInterfaceB {
|
||||
@kotlin.native.ObjCName(name = "objCPropertyA", swiftName = "swiftPropertyA") public abstract var kotlinPropertyA: kotlin.Int
|
||||
@kotlin.native.ObjCName(name = "objCPropertyBB", swiftName = "swiftPropertyB") public abstract var kotlinPropertyB: kotlin.Int
|
||||
@kotlin.native.ObjCName(swiftName = "swiftPropertyC") public abstract var kotlinPropertyC: kotlin.Int
|
||||
@kotlin.native.ObjCName(name = "objCPropertyD") public abstract var kotlinPropertyD: kotlin.Int
|
||||
@kotlin.native.ObjCName(name = "objCPropertyE") public abstract var kotlinPropertyE: kotlin.Int
|
||||
public abstract var kotlinPropertyF: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
@kotlin.native.ObjCName(name = "objCFunctionA", swiftName = "swiftFunctionA") public abstract fun @receiver:kotlin.native.ObjCName(name = "objCReceiver", swiftName = "swiftReceiver") kotlin.Int.kotlinFunctionA(/*0*/ @kotlin.native.ObjCName(name = "objCParam", swiftName = "swiftParam") kotlinParam: kotlin.Int): kotlin.Int
|
||||
@kotlin.native.ObjCName(name = "objCFunctionBB", swiftName = "swiftFunctionB") public abstract fun @receiver:kotlin.native.ObjCName(name = "objCReceiver", swiftName = "swiftReceiver") kotlin.Int.kotlinFunctionB(/*0*/ @kotlin.native.ObjCName(name = "objCParam", swiftName = "swiftParam") kotlinParam: kotlin.Int): kotlin.Int
|
||||
@kotlin.native.ObjCName(name = "objCFunctionC", swiftName = "swiftFunctionC") public abstract fun @receiver:kotlin.native.ObjCName(name = "objCReceiverC", swiftName = "swiftReceiver") kotlin.Int.kotlinFunctionC(/*0*/ @kotlin.native.ObjCName(name = "objCParam", swiftName = "swiftParam") kotlinParam: kotlin.Int): kotlin.Int
|
||||
@kotlin.native.ObjCName(name = "objCFunctionD", swiftName = "swiftFunctionD") public abstract fun @receiver:kotlin.native.ObjCName(name = "objCReceiver", swiftName = "swiftReceiver") kotlin.Int.kotlinFunctionD(/*0*/ @kotlin.native.ObjCName(name = "objCParamD", swiftName = "swiftParam") kotlinParam: kotlin.Int): kotlin.Int
|
||||
public abstract fun @receiver:kotlin.native.ObjCName(name = "objCFunctionE", swiftName = "swiftFunctionE") kotlin.Int.kotlinFunctionE(/*0*/ @kotlin.native.ObjCName(name = "objCParam", swiftName = "swiftParam") kotlinParam: kotlin.Int): kotlin.Int
|
||||
}
|
||||
|
||||
public final class KotlinOverrideClass : KotlinInterfaceA, KotlinInterfaceB {
|
||||
public constructor KotlinOverrideClass()
|
||||
public open override /*2*/ var kotlinPropertyA: kotlin.Int
|
||||
public open override /*2*/ var kotlinPropertyB: kotlin.Int
|
||||
public open override /*2*/ var kotlinPropertyC: kotlin.Int
|
||||
public open override /*2*/ var kotlinPropertyD: kotlin.Int
|
||||
public open override /*2*/ var kotlinPropertyE: kotlin.Int
|
||||
public open override /*2*/ var kotlinPropertyF: kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
public open override /*2*/ fun kotlin.Int.kotlinFunctionA(/*0*/ kotlinParam: kotlin.Int): kotlin.Int
|
||||
public open override /*2*/ fun kotlin.Int.kotlinFunctionB(/*0*/ kotlinParam: kotlin.Int): kotlin.Int
|
||||
public open override /*2*/ fun kotlin.Int.kotlinFunctionC(/*0*/ kotlinParam: kotlin.Int): kotlin.Int
|
||||
public open override /*2*/ fun kotlin.Int.kotlinFunctionD(/*0*/ kotlinParam: kotlin.Int): kotlin.Int
|
||||
public open override /*2*/ fun kotlin.Int.kotlinFunctionE(/*0*/ kotlinParam: kotlin.Int): kotlin.Int
|
||||
}
|
||||
|
||||
@kotlin.native.ObjCName(name = "ObjCSubClass", swiftName = "SwiftSubClass") public final class KotlinSubClass : KotlinClass {
|
||||
public constructor KotlinSubClass()
|
||||
@kotlin.native.ObjCName(name = "objCProperty") public open override /*1*/ var kotlinProperty: kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
@kotlin.native.ObjCName(swiftName = "swiftFunction") public open override /*1*/ fun @receiver:kotlin.native.ObjCName(name = "objCReceiver") kotlin.Int.kotlinFunction(/*0*/ @kotlin.native.ObjCName(name = "objCParam") kotlinParam: kotlin.Int): kotlin.Int
|
||||
}
|
||||
|
||||
@kotlin.native.ObjCName(exact = true, swiftName = "SwiftMissingExactName") public final class MissingExactName {
|
||||
public constructor MissingExactName()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
package kotlin {
|
||||
|
||||
package kotlin.native {
|
||||
|
||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FUNCTION}) @kotlin.annotation.Retention(value = AnnotationRetention.BINARY) @kotlin.annotation.MustBeDocumented public final annotation class ObjCName : kotlin.Annotation {
|
||||
public constructor ObjCName(/*0*/ name: kotlin.String = ..., /*1*/ swiftName: kotlin.String = ..., /*2*/ exact: kotlin.Boolean = ...)
|
||||
public final val exact: kotlin.Boolean
|
||||
public final val name: kotlin.String
|
||||
public final val swiftName: kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user