MCPcopy Index your code
hub / github.com/feiyu563/PrometheusAlert / expect

Function expect

static/plugins/codemirror/mode/javascript/javascript.js:360–367  ·  view source on GitHub ↗
(wanted)

Source from the content-addressed store, hash-verified

358 poplex.lex = true;
359
360 function expect(wanted) {
361 function exp(type) {
362 if (type == wanted) return cont();
363 else if (wanted == ";" || type == "}" || type == ")" || type == "]") return pass();
364 else return cont(exp);
365 };
366 return exp;
367 }
368
369 function statement(type, value) {
370 if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);

Callers 15

statementFunction · 0.70
maybeCatchBindingFunction · 0.70
parenExprFunction · 0.70
expressionInnerFunction · 0.70
maybeoperatorNoCommaFunction · 0.70
maybelabelFunction · 0.70
objpropFunction · 0.70
proceedFunction · 0.70
typepropFunction · 0.70
afterTypeFunction · 0.70
proppatternFunction · 0.70
classBodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected