main.seskar.compiler.primitive.extensions.PrimitiveTransformExtension.kt Maven / Gradle / Ivy
package seskar.compiler.primitive.extensions
import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
import org.jetbrains.kotlin.ir.declarations.IrModuleFragment
import org.jetbrains.kotlin.ir.visitors.transformChildrenVoid
import seskar.compiler.primitive.backend.PrimitiveTransformer
internal class PrimitiveTransformExtension : IrGenerationExtension {
override fun generate(
moduleFragment: IrModuleFragment,
pluginContext: IrPluginContext,
) {
moduleFragment.transformChildrenVoid(PrimitiveTransformer(pluginContext))
}
}