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