MCPcopy
hub / github.com/BloombergGraphics/whatiscode / throwUnexpectedToken

Function throwUnexpectedToken

scripts/libs/esprima.js:2113–2115  ·  view source on GitHub ↗
(token, message)

Source from the content-addressed store, hash-verified

2111 }
2112
2113 function throwUnexpectedToken(token, message) {
2114 throw unexpectedTokenError(token, message);
2115 }
2116
2117 function tolerateUnexpectedToken(token, message) {
2118 var error = unexpectedTokenError(token, message);

Callers 15

getEscapedIdentifierFunction · 0.85
scanPunctuatorFunction · 0.85
scanHexLiteralFunction · 0.85
scanBinaryLiteralFunction · 0.85
scanOctalLiteralFunction · 0.85
scanNumericLiteralFunction · 0.85
scanStringLiteralFunction · 0.85
testRegExpFunction · 0.85
scanRegExpBodyFunction · 0.85
expectFunction · 0.85
expectKeywordFunction · 0.85

Calls 1

unexpectedTokenErrorFunction · 0.85

Tested by

no test coverage detected