Пример #1
0
 @Override
 public void visit(ExitInstruction insn) {
   ReturnStatement stmt =
       Statement.exitFunction(
           insn.getValueToReturn() != null ? Expr.var(insn.getValueToReturn().getIndex()) : null);
   stmt.setLocation(currentLocation);
   statements.add(stmt);
 }
 @Override
 public void visit(ExitInstruction insn) {
   if (insn.getValueToReturn() != null) {
     escaping[insn.getValueToReturn().getIndex()] = true;
   }
 }