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

Method findOrCreate

src/jvm/clojure/lang/Namespace.java:206–213  ·  view source on GitHub ↗
(Symbol name)

Source from the content-addressed store, hash-verified

204}
205
206public static Namespace findOrCreate(Symbol name){
207 Namespace ns = namespaces.get(name);
208 if(ns != null)
209 return ns;
210 Namespace newns = new Namespace(name);
211 ns = namespaces.putIfAbsent(name, newns);
212 return ns == null ? newns : ns;
213}
214
215public static Namespace remove(Symbol name){
216 if(name.equals(RT.CLOJURE_NS.name))

Callers 7

internMethod · 0.95
internPrivateMethod · 0.95
CompilerClass · 0.95
readResolveMethod · 0.95
RTClass · 0.95
invokeMethod · 0.95
varMethod · 0.95

Calls 2

putIfAbsentMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected