MCPcopy Index your code
hub / github.com/clojure/clojure / invoke

Method invoke

src/jvm/clojure/lang/LispReader.java:844–862  ·  view source on GitHub ↗
(Object reader, Object hash, Object opts, Object pendingForms)

Source from the content-addressed store, hash-verified

842
843public 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
865static Symbol garg(int n){

Callers

nothing calls this directly

Calls 6

runtimeExceptionMethod · 0.95
invokeMethod · 0.95
ensurePendingMethod · 0.80
formatMethod · 0.80
read1Method · 0.45
unreadMethod · 0.45

Tested by

no test coverage detected