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

Function fxEchoModule

xs/sources/xsDebug.c:1782–1804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1780}
1781
1782void fxEchoModule(txMachine* the, txSlot* module, txInspectorNameList* list)
1783{
1784 txSlot* exports = mxModuleExports(module);
1785 txSlot* instanceInspector = fxToInstanceInspector(the, module);
1786 txSlot* slot;
1787 fxEcho(the, "<node");
1788 if (instanceInspector)
1789 fxEchoFlags(the, "-", exports->flag);
1790 else
1791 fxEchoFlags(the, "+", exports->flag);
1792 fxEcho(the, " name=\"");
1793 slot = mxModuleInternal(module);
1794 fxEcho(the, fxGetKeyName(the, slot->value.module.id));
1795 fxEcho(the, "\"");
1796 fxEchoAddress(the, module);
1797 if (instanceInspector) {
1798 fxEcho(the, ">");
1799 fxEchoInstance(the, fxGetInstance(the, exports), list);
1800 fxEcho(the, "</node>");
1801 }
1802 else
1803 fxEcho(the, "/>");
1804}
1805
1806void fxEchoNumber(txMachine* the, txNumber theNumber)
1807{

Callers 1

fxListModulesFunction · 0.85

Calls 7

fxToInstanceInspectorFunction · 0.85
fxEchoFunction · 0.85
fxEchoFlagsFunction · 0.85
fxGetKeyNameFunction · 0.85
fxEchoAddressFunction · 0.85
fxEchoInstanceFunction · 0.85
fxGetInstanceFunction · 0.85

Tested by

no test coverage detected