ASTNode.getAChild与ASTNode.getChild
#string-manipulations.js
document.write(document.location.href.charCodeAt(0)); // OKdocument.write(document.location); // NOT OKdocument.write(document.location.href); // NOT OKdocument.write(document.location.href.valueOf()); // NOT OKdocument.write(document.location.href.sup()); // NOT OKdocument.write(document.location.href.toUpperCase()); // NOT OKdocument.write(document.location.href.trimLeft()); // NOT OKdocument.write(String.fromCharCode(document.location.href)); // NOT OKdocument.write(String(document.location.href)); // NOT OKdocument.write(escape(document.location.href)); // OK (for now)document.write(escape(escape(escape(document.location.href)))); // OK (for now)
import javascriptfrom ASTNode nodewhere node.getFile().getBaseName() = "string-manipulations.js"select node, node.getAChild()

getAChild等价于i不受限制的getChild
import javascriptfrom ASTNode node, int iwhere node.getFile().getBaseName() = "string-manipulations.js"select node, node.getChild(i)

