MCPcopy Create free account
hub / github.com/TruthHun/BookStack / expect

Function expect

static/editor.md/lib/codemirror/mode/haxe/haxe.js:250–257  ·  view source on GitHub ↗
(wanted)

Source from the content-addressed store, hash-verified

248 poplex.lex = true;
249
250 function expect(wanted) {
251 function f(type) {
252 if (type == wanted) return cont();
253 else if (wanted == ";") return pass();
254 else return cont(f);
255 };
256 return f;
257 }
258
259 function statement(type) {
260 if (type == "@") return cont(metadef);

Callers 6

statementFunction · 0.70
expressionFunction · 0.70
maybeoperatorFunction · 0.70
maybelabelFunction · 0.70
objpropFunction · 0.70
proceedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected