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

Function fxProgramNodeHoist

xs/sources/xsScope.c:834–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834void fxProgramNodeHoist(void* it, void* param)
835{
836 txProgramNode* self = it;
837 txHoister* hoister = param;
838 hoister->functionScope = hoister->bodyScope = self->scope = fxScopeNew(param, it, (hoister->parser->flags & mxEvalFlag) ? XS_TOKEN_EVAL : XS_TOKEN_PROGRAM);
839 hoister->environmentNode = it;
840 fxNodeDispatchHoist(self->body, param);
841 hoister->environmentNode = C_NULL;
842 self->variableCount = hoister->functionScope->declareNodeCount;
843 fxScopeHoisted(self->scope, param);
844}
845
846void fxStatementNodeHoist(void* it, void* param)
847{

Callers

nothing calls this directly

Calls 3

fxScopeNewFunction · 0.85
fxNodeDispatchHoistFunction · 0.85
fxScopeHoistedFunction · 0.85

Tested by

no test coverage detected