MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / pushlex

Function pushlex

lib/web/CodeMirror/mode/javascript/javascript.js:334–344  ·  view source on GitHub ↗
(type, info)

Source from the content-addressed store, hash-verified

332 }
333 popcontext.lex = true
334 function pushlex(type, info) {
335 var result = function() {
336 var state = cx.state, indent = state.indented;
337 if (state.lexical.type == "stat") indent = state.lexical.indented;
338 else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
339 indent = outer.indented;
340 state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
341 };
342 result.lex = true;
343 return result;
344 }
345 function poplex() {
346 var state = cx.state;
347 if (state.lexical.prev) {

Callers 15

statementFunction · 0.70
parenExprFunction · 0.70
expressionInnerFunction · 0.70
maybeoperatorNoCommaFunction · 0.70
contCommasepFunction · 0.70
typeexprFunction · 0.70
afterTypeFunction · 0.70
maybeTypeArgsFunction · 0.70
maybeelseFunction · 0.70
forspecFunction · 0.70
functiondefFunction · 0.70
functiondeclFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected