private Node transform(JsInvocation x) { Node n = IR.call(transform(x.getQualifier())); for (Object element : x.getArguments()) { JsExpression arg = (JsExpression) element; n.addChildToBack(transform(arg)); } return applySourceInfo(n, x); }
@Override public void endVisit(JsInvocation x, JsContext ctx) { nodesInRefContext.remove(x.getQualifier()); visitExpression(x, ctx); }
@Override public boolean visit(JsInvocation x, JsContext ctx) { nodesInRefContext.add(x.getQualifier()); return true; }