MCPcopy Index your code
hub / github.com/nwutils/nw-sample-apps / expect

Function expect

mini-code-edit/cm/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

testNamespaces.jsFile · 0.85
testBase.jsFile · 0.85
testQuotes.jsFile · 0.85
testMultiAttr.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