@Override public Node visit(ForStmt _n, Object _arg) { List<Expression> init = visit(_n.getInit(), _arg); Expression compare = cloneNodes(_n.getCompare(), _arg); List<Expression> update = visit(_n.getUpdate(), _arg); Statement body = cloneNodes(_n.getBody(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); ForStmt r = new ForStmt( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), init, compare, update, body ); r.setComment(comment); return r; }
{if (true) return new ForeachStmt(line, column, token.endLine, token.endColumn,varExpr, expr, body);} {if (true) return new ForStmt(line, column, token.endLine, token.endColumn,init, expr, update, body);} throw new Error("Missing return statement in function");
{if (true) return new ForeachStmt(line, column, token.endLine, token.endColumn,varExpr, expr, body);} ForStmt tmp = new ForStmt(line, column, token.endLine, token.endColumn,init, expr, update, body);