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

Method tagClass

src/jvm/clojure/lang/Compiler.java:9275–9284  ·  view source on GitHub ↗
(Object tag)

Source from the content-addressed store, hash-verified

9273 }
9274
9275 static Class tagClass(Object tag) {
9276 if(tag == null)
9277 return Object.class;
9278 Class c = null;
9279 if(tag instanceof Symbol)
9280 c = primClass((Symbol) tag);
9281 if(c == null)
9282 c = HostExpr.tagToClass(tag);
9283 return c;
9284 }
9285
9286 static Class primClass(Class c){
9287 return c.isPrimitive()?c:Object.class;

Callers 6

emitValueMethod · 0.80
parseMethod · 0.80
LocalBindingExprMethod · 0.80
buildMethod · 0.80
emitStaticsMethod · 0.80
parseMethod · 0.80

Calls 2

primClassMethod · 0.95
tagToClassMethod · 0.95

Tested by

no test coverage detected