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

Function pushlex

static/editor.md/lib/codemirror/mode/javascript/javascript.js:300–310  ·  view source on GitHub ↗
(type, info)

Source from the content-addressed store, hash-verified

298 cx.state.context = cx.state.context.prev;
299 }
300 function pushlex(type, info) {
301 var result = function() {
302 var state = cx.state, indent = state.indented;
303 if (state.lexical.type == "stat") indent = state.lexical.indented;
304 else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
305 indent = outer.indented;
306 state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
307 };
308 result.lex = true;
309 return result;
310 }
311 function poplex() {
312 var state = cx.state;
313 if (state.lexical.prev) {

Callers 8

statementFunction · 0.70
expressionInnerFunction · 0.70
maybeoperatorNoCommaFunction · 0.70
contCommasepFunction · 0.70
maybeelseFunction · 0.70
forspecFunction · 0.70
functiondefFunction · 0.70
classNameAfterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected