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

Function writeLine

test/fixtures/snapshot/typescript.js:18266–18274  ·  view source on GitHub ↗
(force)

Source from the content-addressed store, hash-verified

18264 }
18265 }
18266 function writeLine(force) {
18267 if (!lineStart || force) {
18268 output += newLine;
18269 lineCount++;
18270 linePos = output.length;
18271 lineStart = true;
18272 hasTrailingComment = false;
18273 }
18274 }
18275 function getTextPosWithWriteLine() {
18276 return lineStart ? output.length : (output.length + newLine.length);
18277 }

Callers 15

writeBundleFunction · 0.70
emitMappedTypeFunction · 0.70
emitJSDocFunction · 0.70
emitJSDocSignatureFunction · 0.70
emitSourceFileFunction · 0.70
emitPrologueDirectivesFunction · 0.70
emitUnparsedProloguesFunction · 0.70
emitShebangIfNeededFunction · 0.70
emitEmbeddedStatementFunction · 0.70

Calls 2

lineBreakPartFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…