@Override public Object visit(StatementsBlock statementsBlock) throws SemanticError { for (Statement stmt : statementsBlock.getStatements()) { stmt.accept(this); } return null; }
public Object visit(StatementsBlock statementsBlock) { Object temp; for (Statement statement : statementsBlock.getStatements()) { temp = statement.accept(this); if (temp != null) { return temp; } } return null; }