MCPcopy Index your code
hub / github.com/nodejs/node / writeLinesAndIndent

Function writeLinesAndIndent

test/fixtures/snapshot/typescript.js:114093–114101  ·  view source on GitHub ↗
(lineCount, writeSpaceIfNotIndenting)

Source from the content-addressed store, hash-verified

114091 }
114092 }
114093 function writeLinesAndIndent(lineCount, writeSpaceIfNotIndenting) {
114094 if (lineCount) {
114095 increaseIndent();
114096 writeLine(lineCount);
114097 }
114098 else if (writeSpaceIfNotIndenting) {
114099 writeSpace();
114100 }
114101 }
114102 // Helper function to decrease the indent if we previously indented. Allows multiple
114103 // previous indent values to be considered at a time. This also allows caller to just
114104 // call this once, passing in all their appropriate indent values, instead of needing

Callers 4

onOperatorFunction · 0.85

Calls 3

increaseIndentFunction · 0.85
writeSpaceFunction · 0.85
writeLineFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…