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

Function fxMatchToken

xs/sources/xsSyntaxical.c:537–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537void fxMatchToken(txParser* parser, txToken theToken)
538{
539 if (parser->states[0].token == theToken) {
540 if (parser->states[0].escaped)
541 fxReportParserError(parser, parser->states[0].line, "escaped keyword");
542 fxGetNextToken(parser);
543 }
544 else
545 fxReportParserError(parser, parser->states[0].line, "missing %s", gxTokenNames[theToken]);
546}
547
548txNode* fxPopNode(txParser* parser)
549{

Callers 15

fxExportDeclarationFunction · 0.85
fxImportDeclarationFunction · 0.85
fxSpecifiersFunction · 0.85
fxWithAttributesFunction · 0.85
fxBlockFunction · 0.85
fxStatementFunction · 0.85
fxBreakStatementFunction · 0.85
fxContinueStatementFunction · 0.85
fxDebuggerStatementFunction · 0.85
fxDoStatementFunction · 0.85
fxForStatementFunction · 0.85
xsSyntaxical.cFile · 0.85

Calls 2

fxReportParserErrorFunction · 0.85
fxGetNextTokenFunction · 0.85

Tested by

no test coverage detected