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

Function fxNextStringXProperty

xs/sources/xsProperty.c:170–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170txSlot* fxNextStringXProperty(txMachine* the, txSlot* property, txString string, txID id, txFlag flag)
171{
172 property = property->next = fxNewSlot(the);
173 property->flag = flag;
174 property->ID = id;
175#ifdef mxSnapshot
176 fxCopyStringC(the, property, string);
177#else
178 property->kind = XS_STRING_X_KIND;
179 property->value.string = string;
180#endif
181 return property;
182}
183
184
185txSlot* fxNextSymbolProperty(txMachine* the, txSlot* property, txID symbol, txID id, txFlag flag)

Callers 15

fxBuildKeysFunction · 0.85
fxBuildModuleFunction · 0.85
fxBuildMapSetFunction · 0.85
fxBuildMathFunction · 0.85
fxBuildGeneratorFunction · 0.85
fxBuildSymbolFunction · 0.85
fxBuildFunctionFunction · 0.85
fxBuildErrorFunction · 0.85
fxBuildBigIntFunction · 0.85
fxBuildRegExpFunction · 0.85
fxBuildArrayFunction · 0.85
fxBuildStringFunction · 0.85

Calls 2

fxNewSlotFunction · 0.85
fxCopyStringCFunction · 0.85

Tested by

no test coverage detected