(C context, Object form)
| 2969 | |
| 2970 | static class Parser implements IParser{ |
| 2971 | public Expr parse(C context, Object form) { |
| 2972 | if(context == C.EVAL) |
| 2973 | return analyze(context, RT.list(RT.list(FNONCE, PersistentVector.EMPTY, form))); |
| 2974 | else if(RT.count(form) == 1) |
| 2975 | throw Util.runtimeException("Too few arguments to throw, throw expects a single Throwable instance"); |
| 2976 | else if(RT.count(form) > 2) |
| 2977 | throw Util.runtimeException("Too many arguments to throw, throw expects a single Throwable instance"); |
| 2978 | return new ThrowExpr(analyze(C.EXPRESSION, RT.second(form))); |
| 2979 | } |
| 2980 | } |
| 2981 | } |
| 2982 |
nothing calls this directly
no test coverage detected