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

Function pushContext

static/editor.md/lib/codemirror/mode/d/d.js:121–126  ·  view source on GitHub ↗
(state, col, type)

Source from the content-addressed store, hash-verified

119 this.prev = prev;
120 }
121 function pushContext(state, col, type) {
122 var indent = state.indented;
123 if (state.context && state.context.type == "statement")
124 indent = state.context.indented;
125 return state.context = new Context(indent, col, type, null, state.context);
126 }
127 function popContext(state) {
128 var t = state.context.type;
129 if (t == ")" || t == "]" || t == "}")

Callers 1

d.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected