// Check that the root tag mapped to a definition.
if (tagDef == null)
{
// TODO Add a problem subclass for this.
ICompilerProblem problem = new MXMLSemanticProblem(childTag);
builder.addProblem(problem);
}
// Check that the definition is for a class.
if (!(tagDef instanceof IClassDefinition))
{
// TODO Add a problem subclass for this.
ICompilerProblem problem = new MXMLSemanticProblem(childTag);
builder.addProblem(problem);
}
IClassDefinition tagDefinition = (IClassDefinition)tagDef;
// Check that the class is not final.
if (tagDefinition.isFinal())
{
// TODO Add a problem subclass for this.
ICompilerProblem problem = new MXMLSemanticProblem(childTag);
builder.addProblem(problem);
}
// Find the ClassDefinition that was created for the component class.
MXMLFileScope fileScope = builder.getFileScope();