MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / pushlex

Function pushlex

static/plugins/codemirror/mode/javascript/javascript.js:339–349  ·  view source on GitHub ↗
(type, info)

Source from the content-addressed store, hash-verified

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