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

Method getMethod

src/jvm/clojure/lang/MultiFn.java:144–151  ·  view source on GitHub ↗
(Object dispatchVal)

Source from the content-addressed store, hash-verified

142}
143
144 public IFn getMethod(Object dispatchVal) {
145 if(cachedHierarchy != hierarchy.deref())
146 resetCache();
147 IFn targetFn = (IFn) methodCache.valAt(dispatchVal);
148 if(targetFn != null)
149 return targetFn;
150 return findAndCacheBestMethod(dispatchVal);
151}
152
153private IFn getFn(Object dispatchVal) {
154 IFn targetFn = getMethod(dispatchVal);

Callers 4

getFnMethod · 0.95
maybeEmitFIAdapterMethod · 0.45
tryFindMethodMethod · 0.45
getMethodsMethod · 0.45

Calls 4

resetCacheMethod · 0.95
derefMethod · 0.65
valAtMethod · 0.65

Tested by

no test coverage detected