{
processPackage((PackageDefinitionNode)comment.def);
}
else if (comment.def instanceof ClassDefinitionNode)
{
ClassDefinitionNode cd = (ClassDefinitionNode)comment.def;
processClassAndInterface(cd);
}
else if (comment.def instanceof FunctionDefinitionNode)
{
processFunction((FunctionDefinitionNode)comment.def);
}
else if (comment.def instanceof VariableDefinitionNode)
{
processField((VariableDefinitionNode)comment.def);
}
else
{
//unsupported definition
this.key.name = "Unsupported";
}
if (this.key.type == -1)
return;
this.key.isStatic = isStatic;
//extracts @ tags.
if (comment.getId() != null)
processTags(comment.getId());
//only process inheritDoc when needed
if (!exclude && hasInheritTag)
{
processInheritDoc();
}
processMetadata(comment);
// adding null check - for flash classes it can be null here
if (comment.def instanceof ClassDefinitionNode && abcClass != null)
{
// if this is a class definition and it doesn't have [DefaultProperty], may be its defined on its parent classes.
if(!hasDefaultProperty)
{
ClassDefinitionNode cd = (ClassDefinitionNode)comment.def;
List<MetaData> metadataList = abcClass.getMetaData(StandardDefs.MD_DEFAULTPROPERTY, true);
// if [DefaultProperty] found on the parent, lets inherit that.
if(metadataList.size() != 0)