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

Function fxFunctionNodeBind

xs/sources/xsScope.c:1116–1139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114}
1115
1116void fxFunctionNodeBind(void* it, void* param)
1117{
1118 txFunctionNode* self = it;
1119 txBinder* binder = param;
1120 txInteger scopeLevel = binder->scopeLevel;
1121 txInteger scopeMaximum = binder->scopeMaximum;
1122 scopeLevel = binder->scopeLevel;
1123 scopeMaximum = binder->scopeMaximum;
1124 binder->scopeLevel = 0;
1125 binder->scopeMaximum = 0;
1126 fxScopeBinding(self->scope, param);
1127 fxNodeDispatchBind(self->params, param);
1128 if (self->flags & mxBaseFlag) {
1129 if (binder->classNode->instanceInitAccess) {
1130 fxScopeLookup(binder->scope, binder->classNode->instanceInitAccess, 0);
1131 }
1132 }
1133 fxScopeBindDefineNodes(self->scope, param);
1134 fxNodeDispatchBind(self->body, param);
1135 fxScopeBound(self->scope, param);
1136 self->scopeCount = binder->scopeMaximum;
1137 binder->scopeMaximum = scopeMaximum;
1138 binder->scopeLevel = scopeLevel;
1139}
1140
1141void fxFunctionNodeRename(void* it, txSymbol* symbol)
1142{

Callers

nothing calls this directly

Calls 5

fxScopeBindingFunction · 0.85
fxNodeDispatchBindFunction · 0.85
fxScopeLookupFunction · 0.85
fxScopeBindDefineNodesFunction · 0.85
fxScopeBoundFunction · 0.85

Tested by

no test coverage detected