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

Function fxRenameFunction

xs/sources/xsFunction.c:248–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246#endif
247
248void fxRenameFunction(txMachine* the, txSlot* instance, txID id, txIndex index, txID former, txString prefix)
249{
250 txSlot* property;
251 if (instance->flag & XS_MARK_FLAG)
252 return;
253 property = mxFunctionInstanceCode(instance);
254 if ((property->ID == XS_NO_ID) || (property->ID == former)) {
255 if (id != XS_NO_ID)
256 property->ID = (txID)id;
257 }
258 if (gxDefaults.newFunctionName)
259 property = gxDefaults.newFunctionName(the, instance, id, index, former, prefix);
260}
261
262void fx_Function(txMachine* the)
263{

Callers 7

fxDefinePrivatePropertyFunction · 0.85
xsRun.cFile · 0.85
fxNewFunctionInstanceFunction · 0.85
fxNewHostFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected