Moved symbol table emptiness assertion to later places,

so that the assert doesn't trigger in the plugin context
This commit is contained in:
Alexander Gorshenev
2020-05-30 20:30:23 +03:00
parent 5e56a52f94
commit a112f8acb6
3 changed files with 5 additions and 1 deletions
@@ -229,6 +229,7 @@ fun loadIr(
}
val moduleFragment = psi2IrContext.generateModuleFragmentWithPlugins(project, mainModule.files, irLinker)
symbolTable.noUnboundLeft("Unbound symbols left after linker")
// TODO: not sure whether this check should be enabled by default. Add configuration key for it.
val mangleChecker = ManglerChecker(JsManglerIr, Ir2DescriptorManglerAdapter(JsManglerDesc))