(TypeInfo valueType, ASTree right)
| 99 | } |
| 100 | } |
| 101 | public String translateAssign(TypeInfo valueType, ASTree right) { |
| 102 | if (nest == 0) |
| 103 | return "(" + LOCAL + index + "=" |
| 104 | + translateExpr(right, valueType, type) + ")"; |
| 105 | else { |
| 106 | String value = ((ASTreeEx)right).translate(null); |
| 107 | return "chap14.Runtime.write" + type.toString() |
| 108 | + "(" + ENV + "," + index + "," + value + ")"; |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | @Reviser public static class NegativeEx extends NegativeExpr { |
| 113 | public NegativeEx(List<ASTree> c) { super(c); } |
no test coverage detected