MCPcopy
hub / github.com/DHTMLX/gantt / pushlex

Function pushlex

samples/common/codehighlight/javascript.js:338–348  ·  view source on GitHub ↗
(type, info)

Source from the content-addressed store, hash-verified

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

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected