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

Function fxScopeNew

xs/sources/xsScope.c:145–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145txScope* fxScopeNew(txHoister* hoister, txNode* node, txToken token)
146{
147 txScope* scope = fxNewParserChunkClear(hoister->parser, sizeof(txScope));
148 scope->parser = hoister->parser;
149 scope->scope = hoister->scope;
150 scope->token = token;
151 scope->flags = node->flags & mxStrictFlag;
152 scope->node = node;
153 hoister->scope = scope;
154 return scope;
155}
156
157void fxScopeAddDeclareNode(txScope* self, txDeclareNode* node)
158{

Callers 11

fxBlockNodeHoistFunction · 0.85
fxBodyNodeHoistFunction · 0.85
fxCatchNodeHoistFunction · 0.85
fxClassNodeHoistFunction · 0.85
fxForNodeHoistFunction · 0.85
fxForInForOfNodeHoistFunction · 0.85
fxFunctionNodeHoistFunction · 0.85
fxModuleNodeHoistFunction · 0.85
fxProgramNodeHoistFunction · 0.85
fxSwitchNodeHoistFunction · 0.85
fxWithNodeHoistFunction · 0.85

Calls 1

fxNewParserChunkClearFunction · 0.85

Tested by

no test coverage detected