if (hasUnresolvedNodes(unit))
{
return null;
}
DocumentNode app = (DocumentNode)unit.getSyntaxTree();
assert app != null;
DocumentInfo info = (DocumentInfo)unit.getContext().removeAttribute(MxmlCompiler.DOCUMENT_INFO);
assert info != null;
// build MxmlDocument from MXML DOM
MxmlDocument document = new MxmlDocument(unit, typeTable, info, mxmlConfiguration);
DocumentBuilder builder = new DocumentBuilder(unit, typeTable, mxmlConfiguration, document);
app.analyze(builder);
if (ThreadLocalToolkit.errorCount() > 0)
{
return null;
}