IDefinition outerDocument = classScope.getPropertyFromDef(
getProject(), componentClass, IMXMLLanguageConstants.PROPERTY_OUTER_DOCUMENT, false);
assert (outerDocument != null) : "outerDocument should never be null, as always added";
if (!outerDocument.isContingent())
{
ICompilerProblem problem = new MXMLOuterDocumentAlreadyDeclaredProblem(outerDocument);
getProblems().add(problem);
}
// Process the MXMLComponentNode as an MXMLFactoryNode, which it extends.
// This leaves a ClassFactory on the stack.