public Object visit(Program program) { Object temp; for (ICClass icClass : program.getClasses()) { temp = icClass.accept(this); if (temp != null) { return temp; } } return null; }
@Override public Object visit(Program program) throws SemanticError { for (ICClass icClass : program.getClasses()) icClass.accept(this); return null; }