MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxGetNextToken

Function fxGetNextToken

xs/sources/xsLexical.c:833–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831}
832
833void fxGetNextToken(txParser* parser)
834{
835 if (parser->ahead == 0) {
836 fxGetNextTokenAux(parser);
837 parser->states[0] = parser->states[2];
838 }
839 else if (parser->ahead == 1) {
840 parser->states[0] = parser->states[1];
841 parser->ahead = 0;
842 }
843 else if (parser->ahead == 2) {
844 parser->states[0] = parser->states[1];
845 parser->states[1] = parser->states[2];
846 parser->ahead = 1;
847 }
848}
849
850void fxLookAheadOnce(txParser* parser)
851{

Callers 15

fxMatchTokenFunction · 0.85
fxModuleFunction · 0.85
fxExportDeclarationFunction · 0.85
fxImportDeclarationFunction · 0.85
fxSpecifiersFunction · 0.85
fxWithAttributesFunction · 0.85
fxStatementFunction · 0.85
fxSemicolonFunction · 0.85
fxBreakStatementFunction · 0.85
fxContinueStatementFunction · 0.85
fxDoStatementFunction · 0.85
fxForStatementFunction · 0.85

Calls 1

fxGetNextTokenAuxFunction · 0.85

Tested by

no test coverage detected