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

Method isInternedMapping

src/jvm/clojure/lang/Namespace.java:57–61  ·  view source on GitHub ↗

An interned mapping is one where a var's ns matches the current ns and its sym matches the mapping key. Once established, interned mappings should never change.

(Symbol sym, Object o)

Source from the content-addressed store, hash-verified

55 * Once established, interned mappings should never change.
56 */
57private boolean isInternedMapping(Symbol sym, Object o){
58 return(o instanceof Var &&
59 ((Var) o).ns == this &&
60 ((Var) o).sym.equals(sym));
61}
62
63public Var intern(Symbol sym){
64 if(sym.ns != null)

Callers 2

internMethod · 0.95
checkReplacementMethod · 0.95

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected