MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / expect

Function expect

src/cm/javascript.js:237–243  ·  view source on GitHub ↗
(wanted)

Source from the content-addressed store, hash-verified

235 poplex.lex = true;
236
237 function expect(wanted) {
238 return function expecting(type) {
239 if (type == wanted) return cont();
240 else if (wanted == ";") return pass();
241 else return cont(arguments.callee);
242 };
243 }
244
245 function statement(type) {
246 if (type == "var") return cont(pushlex("vardef"), vardef1, expect(";"), poplex);

Callers 8

statementFunction · 0.85
expressionFunction · 0.85
maybeoperatorFunction · 0.85
maybelabelFunction · 0.85
objpropFunction · 0.85
proceedFunction · 0.85
forspec1Function · 0.85
forspec2Function · 0.85

Calls 2

contFunction · 0.85
passFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…