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

Function fxClassNodeBind

xs/sources/xsScope.c:993–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991}
992
993void fxClassNodeBind(void* it, void* param)
994{
995 txClassNode* self = it;
996 txBinder* binder = param;
997 txClassNode* former = binder->classNode;
998 fxBinderPushVariables(param, 2);
999 if (self->symbol)
1000 fxScopeBinding(self->symbolScope, param);
1001 if (self->heritage)
1002 fxNodeDispatchBind(self->heritage, param);
1003 fxScopeBinding(self->scope, param);
1004 binder->classNode = self;
1005 fxNodeDispatchBind(self->constructor, param);
1006 fxNodeListDistribute(self->items, fxNodeDispatchBind, param);
1007 if (self->constructorInit)
1008 fxNodeDispatchBind(self->constructorInit, param);
1009 if (self->instanceInit)
1010 fxNodeDispatchBind(self->instanceInit, param);
1011 binder->classNode = former;
1012 fxScopeBound(self->scope, param);
1013 if (self->symbol)
1014 fxScopeBound(self->symbolScope, param);
1015 fxBinderPopVariables(param, 2);
1016}
1017
1018void fxDeclareNodeBind(void* it, void* param)
1019{

Callers

nothing calls this directly

Calls 6

fxBinderPushVariablesFunction · 0.85
fxScopeBindingFunction · 0.85
fxNodeDispatchBindFunction · 0.85
fxNodeListDistributeFunction · 0.85
fxScopeBoundFunction · 0.85
fxBinderPopVariablesFunction · 0.85

Tested by

no test coverage detected