MCPcopy
hub / github.com/node-inspector/node-inspector / expect

Function expect

front-end/cm/javascript.js:316–323  ·  view source on GitHub ↗
(wanted)

Source from the content-addressed store, hash-verified

314 poplex.lex = true;
315
316 function expect(wanted) {
317 function exp(type) {
318 if (type == wanted) return cont();
319 else if (wanted == ";") return pass();
320 else return cont(exp);
321 };
322 return exp;
323 }
324
325 function statement(type, value) {
326 if (type == "var") return cont(pushlex("vardef", value.length), vardef, expect(";"), poplex);

Callers 15

statementFunction · 0.70
expressionInnerFunction · 0.70
maybeoperatorNoCommaFunction · 0.70
maybelabelFunction · 0.70
objpropFunction · 0.70
proceedFunction · 0.70
proppatternFunction · 0.70
forspecFunction · 0.70
forspec1Function · 0.70
forspec2Function · 0.70
afterExportFunction · 0.70
maybeArrayComprehensionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected