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

Function fxQueueIndexKeys

xs/sources/xsProperty.c:318–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318txSlot* fxQueueIndexKeys(txMachine* the, txSlot* array, txFlag flag, txSlot* keys)
319{
320 if (flag & XS_EACH_NAME_FLAG) {
321 if (array->value.array.address) {
322 txSize offset = 0;
323 txSize size = (((txChunk*)(((txByte*)array->value.array.address) - sizeof(txChunk)))->size) / sizeof(txSlot);
324 while (offset < size) {
325 txSlot* slot = array->value.array.address + offset;
326 txIndex index = *((txIndex*)slot);
327 keys = fxQueueKey(the, 0, index, keys);
328 offset++;
329 }
330 }
331 }
332 return keys;
333}
334
335txSlot* fxSetIndexProperty(txMachine* the, txSlot* instance, txSlot* array, txIndex index)
336{

Callers 3

fxArrayOwnKeysFunction · 0.85
fxStringOwnKeysFunction · 0.85
fxOrdinaryOwnKeysFunction · 0.85

Calls 1

fxQueueKeyFunction · 0.85

Tested by

no test coverage detected