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

Function fxCoderCountParameters

xs/sources/xsCode.c:1228–1241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1226}
1227
1228txInteger fxCoderCountParameters(txCoder* self, txNode* params)
1229{
1230 txNode* item = ((txParamsBindingNode*)params)->items->first;
1231 txInteger count = 0;
1232 while (item) {
1233 if (item->description->token == XS_TOKEN_REST_BINDING)
1234 break;
1235 if ((item->description->token != XS_TOKEN_ARG) && (item->description->token != XS_TOKEN_ARRAY_BINDING) && (item->description->token != XS_TOKEN_OBJECT_BINDING))
1236 break;
1237 count++;
1238 item = item->next;
1239 }
1240 return count;
1241}
1242
1243txTargetCode* fxCoderCreateTarget(txCoder* self)
1244{

Callers 2

fxFunctionNodeCodeFunction · 0.85
fxHostNodeCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected