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

Method alterRoot

src/jvm/clojure/lang/Var.java:309–317  ·  view source on GitHub ↗
(IFn fn, ISeq args)

Source from the content-addressed store, hash-verified

307}
308
309synchronized public Object alterRoot(IFn fn, ISeq args) {
310 Object newRoot = fn.applyTo(RT.cons(root, args));
311 validate(getValidator(), newRoot);
312 Object oldroot = root;
313 this.root = newRoot;
314 ++rev;
315 notifyWatches(oldroot,newRoot);
316 return newRoot;
317}
318
319public static void pushThreadBindings(Associative bindings){
320 Frame f = dvals.get();

Callers

nothing calls this directly

Calls 5

consMethod · 0.95
validateMethod · 0.80
notifyWatchesMethod · 0.80
applyToMethod · 0.65
getValidatorMethod · 0.65

Tested by

no test coverage detected