@Override public void visit(RaiseInstruction insn) { ThrowStatement stmt = new ThrowStatement(); stmt.setLocation(currentLocation); stmt.setException(Expr.var(insn.getException().getIndex())); statements.add(stmt); }
@Override public void visit(ThrowStatement statement) { statement.getException().acceptVisitor(this); statement.setException(resultExpr); resultStmt = statement; }