MCPcopy Create free account
hub / github.com/TruthHun/BookStack / pushcontext

Function pushcontext

static/editor.md/lib/codemirror/mode/haxe/haxe.js:224–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

222
223 var defaultVars = {name: "this", next: null};
224 function pushcontext() {
225 if (!cx.state.context) cx.state.localVars = defaultVars;
226 cx.state.context = {prev: cx.state.context, vars: cx.state.localVars};
227 }
228 function popcontext() {
229 cx.state.localVars = cx.state.context.vars;
230 cx.state.context = cx.state.context.prev;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected