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

Method emitMethods

src/jvm/clojure/lang/Compiler.java:4513–4533  ·  view source on GitHub ↗
(ClassVisitor cv)

Source from the content-addressed store, hash-verified

4511 }
4512
4513 protected void emitMethods(ClassVisitor cv){
4514 //override of invoke/doInvoke for each method
4515 for(ISeq s = RT.seq(methods); s != null; s = s.next())
4516 {
4517 ObjMethod method = (ObjMethod) s.first();
4518 method.emit(this, cv);
4519 }
4520
4521 if(isVariadic())
4522 {
4523 GeneratorAdapter gen = new GeneratorAdapter(ACC_PUBLIC,
4524 Method.getMethod("int getRequiredArity()"),
4525 null,
4526 null,
4527 cv);
4528 gen.visitCode();
4529 gen.push(variadicMethod.reqParms.count());
4530 gen.returnValue();
4531 gen.endMethod();
4532 }
4533 }
4534
4535 static Expr parse(C context, ISeq form, String name) {
4536 ISeq origForm = form;

Callers

nothing calls this directly

Calls 11

seqMethod · 0.95
nextMethod · 0.95
firstMethod · 0.95
emitMethod · 0.95
isVariadicMethod · 0.95
getMethodMethod · 0.95
pushMethod · 0.95
returnValueMethod · 0.95
endMethodMethod · 0.95
countMethod · 0.65
visitCodeMethod · 0.45

Tested by

no test coverage detected