| 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" |