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

Function fxCallNodeHoist

xs/sources/xsScope.c:420–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420void fxCallNodeHoist(void* it, void* param)
421{
422 txCallNewNode* self = it;
423 txHoister* hoister = param;
424 txParser* parser = hoister->parser;
425 if (self->reference->description->token == XS_TOKEN_ACCESS) {
426 txAccessNode* access = (txAccessNode*)self->reference;
427 if (access->symbol == parser->evalSymbol) {
428 fxScopeEval(hoister->scope);
429 hoister->functionScope->node->flags |= mxArgumentsFlag | mxEvalFlag;
430 hoister->environmentNode->flags |= mxEvalFlag;
431 self->params->flags |= mxEvalParametersFlag;
432 }
433 }
434 fxNodeDispatchHoist(self->reference, param);
435 fxNodeDispatchHoist(self->params, param);
436}
437
438void fxCatchNodeHoist(void* it, void* param)
439{

Callers

nothing calls this directly

Calls 2

fxScopeEvalFunction · 0.85
fxNodeDispatchHoistFunction · 0.85

Tested by

no test coverage detected