main.seskar.compiler.alias.extensions.AliasTransformExtension.kt Maven / Gradle / Ivy
package seskar.compiler.alias.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.alias.backend.AliasTransformer
internal class AliasTransformExtension : IrGenerationExtension {
override fun generate(
moduleFragment: IrModuleFragment,
pluginContext: IrPluginContext,
) {
moduleFragment.transformChildrenVoid(AliasTransformer(pluginContext))
}
}