Logger original = ThreadLocalToolkit.getLogger();
DualModeLineNumberMap map = (DualModeLineNumberMap) unit.getContext().getAttribute(LINE_NUMBER_MAP);
if (map != null)
map.flushTemp(); // flush all compile-error-only line number mappings
Logger adapter = new MxmlLogAdapter(original, map);
ThreadLocalToolkit.setLogger(adapter);
delegateSubCompiler.generate(ascUnit, symbolTable);