(String expr)
| 277 | @Reviser public static class ArgumentsEx extends TypeChecker.ArgumentsEx { |
| 278 | public ArgumentsEx(List<ASTree> c) { super(c); } |
| 279 | public String translate(String expr) { |
| 280 | StringBuilder code = new StringBuilder(expr); |
| 281 | code.append('(').append(ENV); |
| 282 | for (int i = 0; i < size(); i++) |
| 283 | code.append(',') |
| 284 | .append(translateExpr(child(i), argTypes[i], |
| 285 | funcType.parameterTypes[i])); |
| 286 | return code.append(')').toString(); |
| 287 | } |
| 288 | public Object eval(Environment env, Object value) { |
| 289 | if (!(value instanceof JavaFunction)) |
| 290 | throw new StoneException("bad function", this); |
nothing calls this directly
no test coverage detected