commonMain.co.touchlab.skie.shim.ObjCInterop.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-compiler-linker-plugin-kgp_1.9.20 Show documentation
Show all versions of kotlin-compiler-linker-plugin-kgp_1.9.20 Show documentation
Kotlin compiler plugin that improves Swift interface of a Kotlin Multiplatform framework.
The newest version!
package co.touchlab.skie.shim
import org.jetbrains.kotlin.descriptors.ClassDescriptor
import org.jetbrains.kotlin.types.KotlinType
expect fun ClassDescriptor.isExternalObjCClass(): Boolean
expect fun ClassDescriptor.isKotlinObjCClass(): Boolean
expect fun ClassDescriptor.isObjCForwardDeclaration(): Boolean
expect fun ClassDescriptor.isObjCMetaClass(): Boolean
// TODO Optimize by caching super types
expect fun KotlinType.isObjCObjectType(): Boolean
expect fun ClassDescriptor.isObjCProtocolClass(): Boolean