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

Function fxEchoPropertyName

xs/sources/xsDebug.c:2156–2181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2154}
2155
2156void fxEchoPropertyName(txMachine* the, txString thePrefix, txIndex theIndex, txString theSuffix, txID theID)
2157{
2158 if (thePrefix) {
2159 fxEchoString(the, thePrefix);
2160 if (theSuffix) {
2161 fxIndexToString(the, theIndex, the->nameBuffer, sizeof(the->nameBuffer));
2162 fxEchoString(the, the->nameBuffer);
2163 fxEchoString(the, theSuffix);
2164 }
2165 }
2166 else {
2167 if (theID != XS_NO_ID) {
2168 txBoolean adorn;
2169 txString string = fxGetKeyString(the, theID, &adorn);
2170 if (adorn) {
2171 fxEcho(the, "Symbol(");
2172 fxEchoString(the, string);
2173 fxEcho(the, ")");
2174 }
2175 else
2176 fxEchoString(the, string);
2177 }
2178 else
2179 fxEcho(the, "?");
2180 }
2181}
2182
2183void fxEchoStart(txMachine* the)
2184{

Callers 3

fxEchoInstanceFunction · 0.85
fxEchoPropertyFunction · 0.85
fxEchoPropertyInstanceFunction · 0.85

Calls 4

fxEchoStringFunction · 0.85
fxIndexToStringFunction · 0.85
fxGetKeyStringFunction · 0.85
fxEchoFunction · 0.85

Tested by

no test coverage detected