MCPcopy Create free account
hub / github.com/HumbleSoftware/Flotr2 / expect

Function expect

examples/lib/codemirror/mode/javascript/javascript.js:203–209  ·  view source on GitHub ↗
(wanted)

Source from the content-addressed store, hash-verified

201 poplex.lex = true;
202
203 function expect(wanted) {
204 return function expecting(type) {
205 if (type == wanted) return cont();
206 else if (wanted == ";") return pass();
207 else return cont(arguments.callee);
208 };
209 }
210
211 function statement(type) {
212 if (type == "var") return cont(pushlex("vardef"), vardef1, expect(";"), poplex);

Callers 13

fontcolor.spec.jsFile · 0.85
examples.spec.jsFile · 0.85
color.spec.jsFile · 0.85
statementFunction · 0.85
expressionFunction · 0.85
maybeoperatorFunction · 0.85
maybelabelFunction · 0.85
objpropFunction · 0.85
proceedFunction · 0.85

Calls 2

contFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected