MCPcopy
hub / github.com/ternjs/tern / withSuper

Function withSuper

lib/infer.js:928–934  ·  view source on GitHub ↗
(ctor, obj, f)

Source from the content-addressed store, hash-verified

926 }
927
928 function withSuper(ctor, obj, f) {
929 var oldCtor = cx.curSuperCtor, oldObj = cx.curSuper;
930 cx.curSuperCtor = ctor; cx.curSuper = obj;
931 var result = f();
932 cx.curSuperCtor = oldCtor; cx.curSuper = oldObj;
933 return result;
934 }
935
936 // SCOPES
937

Callers 2

inferClassFunction · 0.85
infer.jsFile · 0.85

Calls 1

fFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…