MCPcopy
hub / github.com/lit/lit / indent

Function indent

packages/benchmarks/generator/src/renderers.ts:58–60  ·  view source on GitHub ↗
(level: string, more = 0)

Source from the content-addressed store, hash-verified

56 // Returns padding for pretty-printing appropriate for the depth of the level,
57 // or nothing if pretty printing is disabled
58 const indent = (level: string, more = 0) => {
59 return opts.pretty ? ' '.repeat(depthForLevel(level) + more) : '';
60 };
61 // Returns carriage return, or nothing if pretty printing is disabled
62 const cr = () => {
63 return opts.pretty ? '\n' : '';

Callers 11

writeOutputMethod · 0.85
encodeLocaleMethod · 0.85
initNewTargetDocumentMethod · 0.85
appendChildMethod · 0.85
getRenderersFunction · 0.85
textNodeFunction · 0.85
closeTagFunction · 0.85
callTemplateFunction · 0.85
openTagStartFunction · 0.85
setAttrFunction · 0.85
openTagEndFunction · 0.85

Calls 1

depthForLevelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…