Lowerings apply to a list of modules

This commit is contained in:
Anton Bannykh
2020-06-03 15:54:53 +03:00
parent 9a1d9814de
commit 5239ab477c
4 changed files with 44 additions and 21 deletions
@@ -67,6 +67,14 @@ interface BodyLoweringPass : FileLoweringPass {
fun FileLoweringPass.lower(moduleFragment: IrModuleFragment) = moduleFragment.files.forEach { lower(it) }
//fun FileLoweringPass.lower(modules: Iterable<IrModuleFragment>) {
// modules.forEach { module ->
// module.files.forEach {
// lower(it)
// }
// }
//}
fun ClassLoweringPass.runOnFilePostfix(irFile: IrFile) {
irFile.acceptVoid(object : IrElementVisitorVoid {
override fun visitElement(element: IrElement) {