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

Function fxObjectNodeBind

xs/sources/xsScope.c:1182–1210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1180}
1181
1182void fxObjectNodeBind(void* it, void* param)
1183{
1184 txObjectNode* self = it;
1185 txNode* item = self->items->first;
1186 fxBinderPushVariables(param, 1);
1187 while (item) {
1188 txNode* value;
1189 if (item->description->token == XS_TOKEN_SPREAD) {
1190 }
1191 else {
1192 if (item->description->token == XS_TOKEN_PROPERTY) {
1193 value = ((txPropertyNode*)item)->value;
1194 }
1195 else {
1196 value = ((txPropertyAtNode*)item)->value;
1197 }
1198 if ((value->description->token == XS_TOKEN_FUNCTION) || (value->description->token == XS_TOKEN_GENERATOR) || (value->description->token == XS_TOKEN_HOST)) {
1199 txFunctionNode* node = (txFunctionNode*)value;
1200 node->flags |= item->flags & (mxMethodFlag | mxGetterFlag | mxSetterFlag);
1201 }
1202 else if (value->description->token == XS_TOKEN_CLASS) {
1203// txFunctionNode* node = (txFunctionNode*)(((txClassNode*)value)->constructor);
1204 }
1205 }
1206 fxNodeDispatchBind(item, param);
1207 item = item->next;
1208 }
1209 fxBinderPopVariables(param, 1);
1210}
1211
1212void fxObjectBindingNodeBind(void* it, void* param)
1213{

Callers

nothing calls this directly

Calls 3

fxBinderPushVariablesFunction · 0.85
fxNodeDispatchBindFunction · 0.85
fxBinderPopVariablesFunction · 0.85

Tested by

no test coverage detected