
commonMain.co.touchlab.skie.entrypoint.SkieIrGenerationExtension.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.8.20 Show documentation
Show all versions of kotlin-compiler-linker-plugin-kgp_1.8.20 Show documentation
Kotlin compiler plugin that improves Swift interface of a Kotlin Multiplatform framework.
package co.touchlab.skie.entrypoint
import co.touchlab.skie.compilerinject.compilerplugin.mainSkieContext
import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
import org.jetbrains.kotlin.config.CompilerConfiguration
import org.jetbrains.kotlin.ir.declarations.IrModuleFragment
class SkieIrGenerationExtension(private val configuration: CompilerConfiguration) : IrGenerationExtension {
override fun generate(moduleFragment: IrModuleFragment, pluginContext: IrPluginContext) {
EntrypointUtils.runKotlinIrPhases(
mainSkieContext = configuration.mainSkieContext,
moduleFragment = moduleFragment,
pluginContext = pluginContext,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy