Node temp = node.def.metaData.items.get(ix + 1);
// if the last one is a DocCommentnode, we can run it through the evaluator.
if (temp instanceof DocCommentNode)
{
DocCommentNode tempDoc = ((DocCommentNode)temp);
// we can not access the metadata node directly because it doesn't
// have public access and it is buried deep into the tree. this is
// required so that we can access the comment easily.
macromedia.asc.parser.MetaDataEvaluator evaluator =
new macromedia.asc.parser.MetaDataEvaluator();
evaluator.evaluate(cx, tempDoc);
// if evaluator has not null comment.
if (evaluator.doccomments != null && evaluator.doccomments.size() != 0)
{
String comment = evaluator.doccomments.get(0).getId();
// if comment is present then create a DocCommentNode for the hostComponent variable
if (comment != null)
{
DocCommentNode hostComponentComment =
AbstractSyntaxTreeUtil.generateDocComment(nodeFactory, comment.intern());
if (hostComponentComment != null)
{
statementList = nodeFactory.statementList(statementList, hostComponentComment);