MCPcopy Index your code
hub / github.com/GJDuck/e9patch / unexpectedToken

Function unexpectedToken

src/e9patch/e9json.cpp:381–388  ·  view source on GitHub ↗

* Unexpected token error. */

Source from the content-addressed store, hash-verified

379 * Unexpected token error.
380 */
381static NO_RETURN void unexpectedToken(Parser &parser, const char *object,
382 char token)
383{
384 if (parser.isPipe() && token == EOF)
385 exit(EXIT_FAILURE);
386 parse_error(parser, "failed to parse %s; unexpcted token `%s'",
387 object, getTokenName(token));
388}
389
390/*
391 * Expect `token'.

Callers 5

parseAndDiscardObjectFunction · 0.85
parseTrampolineFunction · 0.85
parseBytesFunction · 0.85
parseStringsFunction · 0.85
getBlobMethod · 0.85

Calls 3

exitFunction · 0.85
getTokenNameFunction · 0.85
isPipeMethod · 0.80

Tested by

no test coverage detected