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

Function fxCheckArrowFunction

xs/sources/xsSyntaxical.c:3933–3942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3931}
3932
3933void fxCheckArrowFunction(txParser* parser, txInteger count)
3934{
3935 txNode* node = parser->root;
3936 while (count) {
3937 if (node->flags & mxArrowFlag)
3938 fxReportParserError(parser, parser->states[0].line, "invalid arrow function");
3939 count--;
3940 node = node->next;
3941 }
3942}
3943
3944static void fxReportWarning(txParser* parser, txInteger line, txString theFormat, ...)
3945{

Callers 15

fxConditionalExpressionFunction · 0.85
fxCoalesceExpressionFunction · 0.85
fxOrExpressionFunction · 0.85
fxAndExpressionFunction · 0.85
fxBitOrExpressionFunction · 0.85
fxBitXorExpressionFunction · 0.85
fxBitAndExpressionFunction · 0.85
fxEqualExpressionFunction · 0.85
fxRelationalExpressionFunction · 0.85
fxShiftExpressionFunction · 0.85
fxAdditiveExpressionFunction · 0.85

Calls 1

fxReportParserErrorFunction · 0.85

Tested by

no test coverage detected