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

Function fxGetKey

xs/sources/xsSymbol.c:230–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230txSlot* fxGetKey(txMachine* the, txID theID)
231{
232 txSlot* key;
233 mxCheck(the, 0 < theID);
234 mxCheck(the, theID < the->keyIndex);
235 if (theID < the->keyOffset)
236 key = the->keyArrayHost[theID];
237 else
238 key = the->keyArray[theID - the->keyOffset];
239 mxCheck(the, key->kind != XS_UNDEFINED_KIND);
240 return key;
241}
242
243char* fxGetKeyName(txMachine* the, txID theID)
244{

Callers 15

fx_structuredCloneThrowFunction · 0.85
fxLinkerScriptCallbackFunction · 0.85
fxResolveModuleFunction · 0.85
fxModuleOwnKeysFunction · 0.85
ifFunction · 0.85
fx_Symbol_keyForFunction · 0.85
fxSymbolToStringFunction · 0.85
fxGetKeyNameFunction · 0.85
fxGetKeyStringFunction · 0.85
fxPushKeyStringFunction · 0.85
fxIsKeyNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected