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

Function fxStripInstance

xs/tools/xslStrip.c:960–977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

958}
959
960void fxStripInstance(txLinker* linker, txMachine* the, txSlot* instance)
961{
962 txSlot* slot = instance->next;
963 while (slot) {
964 if (slot->kind == XS_HOST_FUNCTION_KIND)
965 fxStripCallback(linker, slot->value.hostFunction.builder->callback);
966 else if (slot->kind == XS_ACCESSOR_KIND) {
967 txSlot* function;
968 function = slot->value.accessor.getter;
969 if (function && (function->next->kind == XS_CALLBACK_KIND))
970 fxStripCallback(linker, function->next->value.callback.address);
971 function = slot->value.accessor.setter;
972 if (function && (function->next->kind == XS_CALLBACK_KIND))
973 fxStripCallback(linker, function->next->value.callback.address);
974 }
975 slot = slot->next;
976 }
977}
978
979void fxStripName(txLinker* linker, txString name)
980{

Callers 3

fxStripCallbacksFunction · 0.85
fxStripClassFunction · 0.85
fxStripObjectFunction · 0.85

Calls 1

fxStripCallbackFunction · 0.85

Tested by

no test coverage detected