final IMXMLFileNode fileNode = builder.build();
try
{
// TODO This belongs in MXMLDocumentNode.
MXMLDocumentNode documentNode = (MXMLDocumentNode)fileNode.getDocumentNode();
if (documentNode != null)
{
ClassDefinition mainClassDefinition = fileScope.getMainClassDefinition();
if (mainClassDefinition != null)
{
TypeScope mainClassScope = (TypeScope)mainClassDefinition.getContainedScope();
documentNode.setScope(mainClassScope);
}
}
// Start CSS semantic analysis.
final Function<IMXMLStyleNode, ICSSDocument> parseMXMLStyleNode = new Function<IMXMLStyleNode, ICSSDocument>()