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

Function getToken

src/e9patch/e9json.cpp:364–376  ·  view source on GitHub ↗

* Get (consume) the next token. */

Source from the content-addressed store, hash-verified

362 * Get (consume) the next token.
363 */
364static char getToken(Parser &parser)
365{
366 char token = parser.peek;
367 if (token != TOKEN_NONE)
368 {
369 parser.peek = TOKEN_NONE;
370 return token;
371 }
372 token = peekToken(parser);
373 parser.peek = TOKEN_NONE;
374
375 return token;
376}
377
378/*
379 * Unexpected token error.

Callers 11

expectTokenFunction · 0.85
expectToken2Function · 0.85
parseAndDiscardObjectFunction · 0.85
parseTrampolineFunction · 0.85
parseBytesFunction · 0.85
parseMetadataFunction · 0.85
parseStringsFunction · 0.85
peekTokenMethod · 0.85
expectTokenMethod · 0.85
expectToken2Method · 0.85
getBlobMethod · 0.85

Calls 1

peekTokenFunction · 0.85

Tested by

no test coverage detected