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

Method invoke

src/jvm/clojure/lang/EdnReader.java:538–555  ·  view source on GitHub ↗
(Object reader, Object hash, Object opts)

Source from the content-addressed store, hash-verified

536
537public static class DispatchReader extends AFn{
538 public Object invoke(Object reader, Object hash, Object opts) {
539 int ch = read1((Reader) reader);
540 if(ch == -1)
541 throw Util.runtimeException("EOF while reading character");
542 IFn fn = dispatchMacros[ch];
543
544 if(fn == null) {
545 //try tagged reader
546 if(Character.isLetter(ch))
547 {
548 unread((PushbackReader) reader, ch);
549 return taggedReader.invoke(reader, ch, opts);
550 }
551
552 throw Util.runtimeException(String.format("No dispatch macro for: %c", (char) ch));
553 }
554 return fn.invoke(reader, ch, opts);
555 }
556}
557
558public static class MetaReader extends AFn{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected