public EcmascriptNode getBody(int index) {
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Hello,
In pmd.lang.ecmascript.ast.ASTFunctionNode, I think the parameter of getBody() is not required, because not used.
Obviouly this not a bug, but it is confusing.
public EcmascriptNode getBody(int index) { return (EcmascriptNode) jjtGetChild(jjtGetNumChildren() - 1); }
Regards
Committed: https://github.com/pmd/pmd/commit/858308aa8f13c11512cc298c7bf7234029c5ebb3