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

Function fxStringifyJSONIndent

xs/sources/xsJSON.c:901–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899}
900
901void fxStringifyJSONIndent(txMachine* the, txJSONStringifier* theStringifier)
902{
903 txInteger aLevel;
904 if (theStringifier->indent[0]) {
905 fxStringifyJSONChars(the, theStringifier, "\n", 1);
906 for (aLevel = 0; aLevel < theStringifier->level; aLevel++)
907 fxStringifyJSONChars(the, theStringifier, theStringifier->indent, theStringifier->indentLength);
908 }
909}
910
911void fxStringifyJSONInteger(txMachine* the, txJSONStringifier* theStringifier, txInteger theInteger)
912{

Callers 2

fxStringifyJSONNameFunction · 0.85
fxStringifyJSONPropertyFunction · 0.85

Calls 1

fxStringifyJSONCharsFunction · 0.85

Tested by

no test coverage detected