private FunctionDeclaration resolveMethodDeclaration(ASTNode node) { if (node instanceof FunctionDeclaration) return (FunctionDeclaration) node; JSdoc doc = (JSdoc) ASTNodes.getParent(node, ASTNode.JSDOC); if (doc == null) return null; if (doc.getParent() instanceof FunctionDeclaration) return (FunctionDeclaration) doc.getParent(); return null; }
/* * @see ASTVisitor#visit(Javadoc) */ public boolean visit(JSdoc node) { this.fBuffer.append("/** "); // $NON-NLS-1$ for (Iterator it = node.tags().iterator(); it.hasNext(); ) { ASTNode e = (ASTNode) it.next(); e.accept(this); } this.fBuffer.append("\n */"); // $NON-NLS-1$ return false; }