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

Method canEmitPrimitive

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

Source from the content-addressed store, hash-verified

3303 }
3304
3305 public boolean canEmitPrimitive(){
3306 try
3307 {
3308 return thenExpr instanceof MaybePrimitiveExpr
3309 && elseExpr instanceof MaybePrimitiveExpr
3310 && (thenExpr.getJavaClass() == elseExpr.getJavaClass()
3311 || thenExpr.getJavaClass() == RECUR_CLASS
3312 || elseExpr.getJavaClass() == RECUR_CLASS)
3313 && ((MaybePrimitiveExpr)thenExpr).canEmitPrimitive()
3314 && ((MaybePrimitiveExpr)elseExpr).canEmitPrimitive();
3315 }
3316 catch(Exception e)
3317 {
3318 return false;
3319 }
3320 }
3321
3322 public Class getJavaClass() {
3323 Class thenClass = thenExpr.getJavaClass();

Callers

nothing calls this directly

Calls 2

getJavaClassMethod · 0.65
canEmitPrimitiveMethod · 0.65

Tested by

no test coverage detected