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

Function expect

public/codemirror/javascript/javascript.js:342–349  ·  view source on GitHub ↗
(wanted)

Source from the content-addressed store, hash-verified

340 poplex.lex = true;
341
342 function expect(wanted) {
343 function exp(type) {
344 if (type == wanted) return cont();
345 else if (wanted == ";") return pass();
346 else return cont(exp);
347 };
348 return exp;
349 }
350
351 function statement(type, value) {
352 if (type == "var") return cont(pushlex("vardef", value.length), vardef, expect(";"), poplex);

Callers 15

statementFunction · 0.85
parenExprFunction · 0.85
expressionInnerFunction · 0.85
maybeoperatorNoCommaFunction · 0.85
maybelabelFunction · 0.85
objpropFunction · 0.85
proceedFunction · 0.85
afterTypeFunction · 0.85
proppatternFunction · 0.85
forspecFunction · 0.85
forspec1Function · 0.85
forspec2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected