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

Method sigTag

src/jvm/clojure/lang/Compiler.java:4145–4156  ·  view source on GitHub ↗
(int argcount, Var v)

Source from the content-addressed store, hash-verified

4143 Class jc;
4144
4145 static Object sigTag(int argcount, Var v){
4146 Object arglists = RT.get(RT.meta(v), arglistsKey);
4147 Object sigTag = null;
4148 for(ISeq s = RT.seq(arglists); s != null; s = s.next())
4149 {
4150 APersistentVector sig = (APersistentVector) s.first();
4151 int restOffset = sig.indexOf(_AMP_);
4152 if(argcount == sig.count() || (restOffset > -1 && argcount >= restOffset))
4153 return tagOf(sig);
4154 }
4155 return null;
4156 }
4157
4158 // Callsites are only registered in a function context
4159 // In KEYWORD/PROTOCOL_CALLSITES, null indicates "do not register"

Callers 2

InvokeExprMethod · 0.95
parseMethod · 0.95

Calls 8

getMethod · 0.95
metaMethod · 0.95
seqMethod · 0.95
nextMethod · 0.95
firstMethod · 0.95
indexOfMethod · 0.95
tagOfMethod · 0.80
countMethod · 0.65

Tested by

no test coverage detected