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

Method eval

src/jvm/clojure/lang/Compiler.java:3121–3137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3119 }
3120
3121 public Object eval() {
3122 Object[] argvals = new Object[args.count()];
3123 for(int i = 0; i < args.count(); i++)
3124 argvals[i] = ((Expr) args.nth(i)).eval();
3125 if(this.ctor != null)
3126 {
3127 try
3128 {
3129 return ctor.newInstance(Reflector.boxArgs(ctor.getParameterTypes(), argvals));
3130 }
3131 catch(Exception e)
3132 {
3133 throw Util.sneakyThrow(e);
3134 }
3135 }
3136 return Reflector.invokeConstructor(c, argvals);
3137 }
3138
3139 public void emit(C context, ObjExpr objx, GeneratorAdapter gen){
3140 if(this.ctor != null)

Callers

nothing calls this directly

Calls 7

boxArgsMethod · 0.95
sneakyThrowMethod · 0.95
invokeConstructorMethod · 0.95
newInstanceMethod · 0.80
countMethod · 0.65
evalMethod · 0.65
nthMethod · 0.65

Tested by

no test coverage detected