(Object reader, Object hash, Object opts, Object pendingForms)
| 842 | |
| 843 | public static class DispatchReader extends AFn{ |
| 844 | public Object invoke(Object reader, Object hash, Object opts, Object pendingForms) { |
| 845 | int ch = read1((Reader) reader); |
| 846 | if(ch == -1) |
| 847 | throw Util.runtimeException("EOF while reading character"); |
| 848 | IFn fn = dispatchMacros[ch]; |
| 849 | |
| 850 | // Try the ctor reader first |
| 851 | if(fn == null) { |
| 852 | unread((PushbackReader) reader, ch); |
| 853 | pendingForms = ensurePending(pendingForms); |
| 854 | Object result = ctorReader.invoke(reader, ch, opts, pendingForms); |
| 855 | |
| 856 | if(result != null) |
| 857 | return result; |
| 858 | else |
| 859 | throw Util.runtimeException(String.format("No dispatch macro for: %c", (char) ch)); |
| 860 | } |
| 861 | return fn.invoke(reader, ch, opts, pendingForms); |
| 862 | } |
| 863 | } |
| 864 | |
| 865 | static Symbol garg(int n){ |
nothing calls this directly
no test coverage detected