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

Function fxSemicolon

xs/sources/xsSyntaxical.c:1440–1448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1438}
1439
1440void fxSemicolon(txParser* parser)
1441{
1442 if ((parser->states[0].crlf) || (gxTokenFlags[parser->states[0].token] & XS_TOKEN_END_STATEMENT)) {
1443 if (parser->states[0].token == XS_TOKEN_SEMICOLON)
1444 fxGetNextToken(parser);
1445 }
1446 else
1447 fxReportParserError(parser, parser->states[0].line, "missing ;");
1448}
1449
1450void fxBreakStatement(txParser* parser)
1451{

Callers 4

fxExportDeclarationFunction · 0.85
fxImportDeclarationFunction · 0.85
fxStatementFunction · 0.85
fxClassExpressionFunction · 0.85

Calls 2

fxGetNextTokenFunction · 0.85
fxReportParserErrorFunction · 0.85

Tested by

no test coverage detected