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

Function fxSwitchNodeHoist

xs/sources/xsScope.c:870–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

868}
869
870void fxSwitchNodeHoist(void* it, void* param)
871{
872 txSwitchNode* self = it;
873 fxNodeDispatchHoist(self->expression, param);
874 self->scope = fxScopeNew(param, it, XS_TOKEN_BLOCK);
875 fxNodeListDistribute(self->items, fxNodeDispatchHoist, param);
876 fxScopeHoisted(self->scope, param);
877}
878
879void fxWithNodeHoist(void* it, void* param)
880{

Callers

nothing calls this directly

Calls 4

fxNodeDispatchHoistFunction · 0.85
fxScopeNewFunction · 0.85
fxNodeListDistributeFunction · 0.85
fxScopeHoistedFunction · 0.85

Tested by

no test coverage detected