commonMain.co.touchlab.skie.phases.KirPhase+linker.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.phases
import co.touchlab.skie.context.KirPhaseContext
import co.touchlab.skie.kir.descriptor.DescriptorKirProvider
import co.touchlab.skie.kir.descriptor.ObjCExportedInterfaceProvider
import co.touchlab.skie.kir.type.translation.KirDeclarationTypeTranslator
import co.touchlab.skie.kir.type.translation.KirTypeTranslator
import org.jetbrains.kotlin.backend.konan.objcexport.ObjCExportNamer
val KirPhase.Context.descriptorKirProvider: DescriptorKirProvider
get() = typedContext.descriptorKirProvider
val KirPhase.Context.namer: ObjCExportNamer
get() = typedContext.namer
val KirPhase.Context.kirTypeTranslator: KirTypeTranslator
get() = typedContext.kirTypeTranslator
val KirPhase.Context.kirDeclarationTypeTranslator: KirDeclarationTypeTranslator
get() = typedContext.kirDeclarationTypeTranslator
val KirPhase.Context.objCExportedInterfaceProvider: ObjCExportedInterfaceProvider
get() = typedContext.objCExportedInterfaceProvider
private val KirPhase.Context.typedContext: KirPhaseContext
get() = context as KirPhaseContext