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

Method findFnFor

src/jvm/clojure/lang/MethodImplCache.java:70–88  ·  view source on GitHub ↗
(Class c)

Source from the content-addressed store, hash-verified

68}
69
70IFn findFnFor(Class c){
71 if (map != null)
72 {
73 Entry e = (Entry) map.get(c);
74 mre = e;
75 return e != null ? e.fn : null;
76 }
77 else
78 {
79 int idx = ((Util.hash(c) >> shift) & mask) << 1;
80 if(idx < table.length && table[idx] == c)
81 {
82 Entry e = ((Entry) table[idx + 1]);
83 mre = e;
84 return e != null ? e.fn : null;
85 }
86 return null;
87 }
88}
89
90
91}

Callers 1

fnForMethod · 0.95

Calls 2

hashMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected