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

Function writeLineSeparatorsAndIndentBefore

test/fixtures/snapshot/typescript.js:114242–114248  ·  view source on GitHub ↗
(node, parent)

Source from the content-addressed store, hash-verified

114240 return lines;
114241 }
114242 function writeLineSeparatorsAndIndentBefore(node, parent) {
114243 var leadingNewlines = preserveSourceNewlines && getLeadingLineTerminatorCount(parent, [node], 0 /* ListFormat.None */);
114244 if (leadingNewlines) {
114245 writeLinesAndIndent(leadingNewlines, /*writeSpaceIfNotIndenting*/ false);
114246 }
114247 return !!leadingNewlines;
114248 }
114249 function writeLineSeparatorsAfter(node, parent) {
114250 var trailingNewlines = preserveSourceNewlines && getClosingLineTerminatorCount(parent, [node], 0 /* ListFormat.None */);
114251 if (trailingNewlines) {

Callers 2

Calls 2

writeLinesAndIndentFunction · 0.85

Tested by

no test coverage detected