@Override public void visit(PutElementInstruction insn) { AssignmentStatement stmt = Statement.assign( Expr.subscript( Expr.var(insn.getArray().getIndex()), Expr.var(insn.getIndex().getIndex())), Expr.var(insn.getValue().getIndex())); stmt.setLocation(currentLocation); statements.add(stmt); }
@Override public void visit(PutElementInstruction insn) { escaping[insn.getArray().getIndex()] = true; escaping[insn.getIndex().getIndex()] = true; escaping[insn.getValue().getIndex()] = true; }