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

Method maybePrimitiveType

src/jvm/clojure/lang/Compiler.java:1643–1651  ·  view source on GitHub ↗
(Expr e)

Source from the content-addressed store, hash-verified

1641}
1642
1643static Class maybePrimitiveType(Expr e){
1644 if(e instanceof MaybePrimitiveExpr && e.hasJavaClass() && ((MaybePrimitiveExpr)e).canEmitPrimitive())
1645 {
1646 Class c = e.getJavaClass();
1647 if(Util.isPrimitive(c))
1648 return c;
1649 }
1650 return null;
1651}
1652
1653static class FISupport {
1654 private static final IPersistentSet AFN_FIS = RT.set(Callable.class, Runnable.class, Comparator.class);

Callers 13

emitTypedArgsMethod · 0.80
doEmitMethod · 0.80
emitUnboxedMethod · 0.80
emitBodyMethod · 0.80
emitClearLocalsOldMethod · 0.80
LocalBindingMethod · 0.80
getPrimitiveTypeMethod · 0.80
emitMethod · 0.80
parseMethod · 0.80
doEmitMethod · 0.80
emitMethod · 0.80
parseMethod · 0.80

Calls 4

isPrimitiveMethod · 0.95
hasJavaClassMethod · 0.65
canEmitPrimitiveMethod · 0.65
getJavaClassMethod · 0.65

Tested by

no test coverage detected