final public DoStmt DoStatement() throws ParseException { Expression condition; Statement body; int line; int column; jj_consume_token(DO); line=token.beginLine; column=token.beginColumn; body = Statement(); jj_consume_token(WHILE); jj_consume_token(LPAREN); condition = Expression(); jj_consume_token(RPAREN); jj_consume_token(SEMICOLON); {if (true) return new DoStmt(line, column, token.endLine, token.endColumn,body, condition);} throw new Error("Missing return statement in function"); }
final public DoStmt DoStatement() throws ParseException { Expression condition; Statement body; int line; int column; jj_consume_token(DO); line=token.beginLine; column=token.beginColumn; body = Statement(); jj_consume_token(WHILE); jj_consume_token(LPAREN); condition = Expression(); jj_consume_token(RPAREN); jj_consume_token(SEMICOLON); DoStmt tmp = new DoStmt(line, column, token.endLine, token.endColumn,body, condition); {if (true) return tmp;} throw new Error("Missing return statement in function"); }
@Override public Node visit(DoStmt _n, Object _arg) { Statement body = cloneNodes(_n.getBody(), _arg); Expression condition = cloneNodes(_n.getCondition(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); DoStmt r = new DoStmt( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), body, condition ); r.setComment(comment); return r; }