final public DeleteStatement DeleteStatement() throws ParseException, ParseException { VariableExpr var = null; Expression condition = null; Pair<Identifier, Identifier> nameComponents; jj_consume_token(DELETE); var = Variable(); getCurrentScope().addNewVarSymbolToScope(var.getVar()); jj_consume_token(FROM); jj_consume_token(DATASET); nameComponents = QualifiedName(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WHERE: jj_consume_token(WHERE); condition = Expression(); break; default: jj_la1[38] = jj_gen; ; } // First we get the dataverses and datasets that we want to lock {if (true) return new DeleteStatement(var, nameComponents.first, nameComponents.second, condition, getVarCounter());} throw new Error("Missing return statement in function"); }
final public DeleteStatement DeleteStatement() throws ParseException, ParseException { VariableExpr var = null; Expression condition = null; Pair<Identifier, Identifier> nameComponents; jj_consume_token(DELETE); var = Variable(); getCurrentScope().addNewVarSymbolToScope(var.getVar()); jj_consume_token(FROM); jj_consume_token(DATASET); nameComponents = QualifiedName(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WHERE: jj_consume_token(WHERE); condition = Expression(); break; default: jj_la1[56] = jj_gen; ; } // First we get the dataverses and datasets that we want to lock {if (true) return new DeleteStatement(var, nameComponents.first, nameComponents.second, condition, getVarCounter());} throw new Error("Missing return statement in function"); }
addSourceLocation(varExpr, startToken); DeleteStatement stmt = new DeleteStatement(varExpr, nameComponents.first, nameComponents.second, condition, getVarCounter()); {if (true) return addSourceLocation(stmt, startToken);}