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

Method arrayTypeToSymbol

src/jvm/clojure/lang/Util.java:266–280  ·  view source on GitHub ↗
(Class c)

Source from the content-addressed store, hash-verified

264}
265
266public static Symbol arrayTypeToSymbol(Class c) {
267 int dim = 0;
268 Class componentClass = c;
269
270 while(componentClass.isArray()) {
271 if(++dim > 9)
272 break;
273
274 componentClass = componentClass.getComponentType();
275 }
276 if (dim <= 9 && dim >= 1)
277 return Symbol.intern(componentClass.getName(), Integer.toString(dim));
278 else
279 return Symbol.intern(null, c.getName());
280}
281}
282

Callers 1

resolveSymbolMethod · 0.95

Calls 3

internMethod · 0.95
getNameMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected