MCPcopy
hub / github.com/mishoo/UglifyJS-old / expect_token

Function expect_token

lib/parse-js.js:749–754  ·  view source on GitHub ↗
(type, val)

Source from the content-addressed store, hash-verified

747 };
748
749 function expect_token(type, val) {
750 if (is(type, val)) {
751 return next();
752 }
753 token_error(S.token, "Unexpected token " + S.token.type + ", expected " + type);
754 };
755
756 function expect(punc) { return expect_token("punc", punc); };
757

Callers 2

expectFunction · 0.85
parseFunction · 0.85

Calls 3

isFunction · 0.85
nextFunction · 0.85
token_errorFunction · 0.85

Tested by

no test coverage detected