[Psi2IR] Improve assertion message

This commit is contained in:
Roman Artemev
2020-07-14 16:18:49 +03:00
committed by romanart
parent d89083cd8c
commit d31de6c8de
@@ -92,7 +92,8 @@ class Psi2IrTranslator(
moduleGenerator.generateUnboundSymbolsAsDependencies(irProviders)
deserializers.forEach { it.postProcess() }
assert(context.symbolTable.allUnbound.isEmpty())
val allUnbound = context.symbolTable.allUnbound
assert(allUnbound.isEmpty()) { "Unbound symbols not allowed\n${allUnbound.joinToString("\n\t", "\t")}" }
postprocessingSteps.forEach { it.invoke(irModule) }
// assert(context.symbolTable.allUnbound.isEmpty()) // TODO: fix IrPluginContext to make it not produce additional external reference