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

Function fxCoalesceExpression

xs/sources/xsSyntaxical.c:1897–1907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1895}
1896
1897void fxCoalesceExpression(txParser* parser)
1898{
1899 fxOrExpression(parser);
1900 while (parser->states[0].token == XS_TOKEN_COALESCE) {
1901 txInteger aLine = parser->states[0].line;
1902 fxGetNextToken(parser);
1903 fxOrExpression(parser);
1904 fxCheckArrowFunction(parser, 2);
1905 fxPushNodeStruct(parser, 2, XS_TOKEN_COALESCE, aLine);
1906 }
1907}
1908
1909void fxOrExpression(txParser* parser)
1910{

Callers 1

fxConditionalExpressionFunction · 0.85

Calls 4

fxOrExpressionFunction · 0.85
fxGetNextTokenFunction · 0.85
fxCheckArrowFunctionFunction · 0.85
fxPushNodeStructFunction · 0.85

Tested by

no test coverage detected