(Environment env)
| 15 | @Reviser public static class ArrayLitEx extends ArrayLiteral { |
| 16 | public ArrayLitEx(List<ASTree> list) { super(list); } |
| 17 | public Object eval(Environment env) { |
| 18 | int s = numChildren(); |
| 19 | Object[] res = new Object[s]; |
| 20 | int i = 0; |
| 21 | for (ASTree t: this) |
| 22 | res[i++] = ((ASTreeEx)t).eval(env); |
| 23 | return res; |
| 24 | } |
| 25 | } |
| 26 | @Reviser public static class ArrayRefEx extends ArrayRef { |
| 27 | public ArrayRefEx(List<ASTree> c) { super(c); } |
no test coverage detected