MCPcopy Create free account
hub / github.com/Paxa/postbird / pushlex

Function pushlex

public/codemirror/javascript/javascript.js:321–331  ·  view source on GitHub ↗
(type, info)

Source from the content-addressed store, hash-verified

319 cx.state.context = cx.state.context.prev;
320 }
321 function pushlex(type, info) {
322 var result = function() {
323 var state = cx.state, indent = state.indented;
324 if (state.lexical.type == "stat") indent = state.lexical.indented;
325 else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
326 indent = outer.indented;
327 state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
328 };
329 result.lex = true;
330 return result;
331 }
332 function poplex() {
333 var state = cx.state;
334 if (state.lexical.prev) {

Callers 11

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

Calls

no outgoing calls

Tested by

no test coverage detected