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

Function fxCoalesceExpressionNodeHoist

xs/sources/xsScope.c:538–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538void fxCoalesceExpressionNodeHoist(void* it, void* param)
539{
540 txBinaryExpressionNode* self = it;
541 txHoister* hoister = param;
542 txToken leftToken = self->left->description->token;
543 txToken rightToken = self->right->description->token;
544 if ((leftToken == XS_TOKEN_AND) || (rightToken == XS_TOKEN_AND))
545 fxReportParserError(hoister->parser, self->line, "missing () around &&");
546 else if ((leftToken == XS_TOKEN_OR) || (rightToken == XS_TOKEN_OR))
547 fxReportParserError(hoister->parser, self->line, "missing () around ||");
548 fxNodeDispatchHoist(self->left, param);
549 fxNodeDispatchHoist(self->right, param);
550}
551
552void fxDeclareNodeHoist(void* it, void* param)
553{

Callers

nothing calls this directly

Calls 2

fxReportParserErrorFunction · 0.85
fxNodeDispatchHoistFunction · 0.85

Tested by

no test coverage detected