@Override public Expression visit(LimitClause limitClause, ILangExpression arg) throws CompilationException { limitClause.setLimitExpr(visit(limitClause.getLimitExpr(), limitClause)); if (limitClause.hasOffset()) { limitClause.setOffset(visit(limitClause.getOffset(), limitClause)); } return null; }
@Override public Expression visit(LimitClause limitClause, ILangExpression arg) throws CompilationException { limitClause.setLimitExpr(visit(limitClause.getLimitExpr(), limitClause)); if (limitClause.hasOffset()) { limitClause.setOffset(visit(limitClause.getOffset(), limitClause)); } return null; }
@Override public Boolean visit(LimitClause lc, List<FunctionDecl> arg) throws CompilationException { Pair<Boolean, Expression> p1 = inlineUdfsInExpr(lc.getLimitExpr(), arg); lc.setLimitExpr(p1.second); boolean changed = p1.first; if (lc.getOffset() != null) { Pair<Boolean, Expression> p2 = inlineUdfsInExpr(lc.getOffset(), arg); lc.setOffset(p2.second); changed = changed || p2.first; } return changed; }
@Override public Expression visit(LimitClause limitClause, ILangExpression arg) throws CompilationException { scopeChecker.pushForbiddenScope(scopeChecker.getCurrentScope()); limitClause.setLimitExpr(visit(limitClause.getLimitExpr(), limitClause)); if (limitClause.hasOffset()) { limitClause.setOffset(visit(limitClause.getOffset(), limitClause)); } scopeChecker.popForbiddenScope(); return null; }
final public LimitClause LimitClause() throws ParseException, ParseException { LimitClause lc = new LimitClause(); Expression expr; pushForbiddenScope(getCurrentScope()); jj_consume_token(LIMIT); expr = Expression(); lc.setLimitExpr(expr); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OFFSET: jj_consume_token(OFFSET); expr = Expression(); lc.setOffset(expr); break; default: jj_la1[0] = jj_gen; ; } popForbiddenScope(); {if (true) return lc;} throw new Error("Missing return statement in function"); }
final public LimitClause LimitClause() throws ParseException, ParseException { LimitClause lc = new LimitClause(); Expression expr; pushForbiddenScope(getCurrentScope()); jj_consume_token(LIMIT); expr = Expression(); lc.setLimitExpr(expr); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OFFSET: jj_consume_token(OFFSET); expr = Expression(); lc.setOffset(expr); break; default: jj_la1[114] = jj_gen; ; } popForbiddenScope(); {if (true) return lc;} throw new Error("Missing return statement in function"); }
final public LimitClause LimitClause() throws ParseException, ParseException { Token startToken = null; LimitClause lc = new LimitClause(); Expression expr; pushForbiddenScope(getCurrentScope()); jj_consume_token(LIMIT); startToken = token; expr = Expression(); lc.setLimitExpr(expr); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OFFSET: jj_consume_token(OFFSET); expr = Expression(); lc.setOffset(expr); break; default: jj_la1[190] = jj_gen; ; } popForbiddenScope(); {if (true) return addSourceLocation(lc, startToken);} throw new Error("Missing return statement in function"); }