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

Function emitComment

test/fixtures/snapshot/typescript.js:115010–115016  ·  view source on GitHub ↗
(text, lineMap, writer, commentPos, commentEnd, newLine)

Source from the content-addressed store, hash-verified

115008 }
115009 }
115010 function emitComment(text, lineMap, writer, commentPos, commentEnd, newLine) {
115011 if (!currentSourceFile || !shouldWriteComment(currentSourceFile.text, commentPos))
115012 return;
115013 emitPos(commentPos);
115014 ts.writeCommentRange(text, lineMap, writer, commentPos, commentEnd, newLine);
115015 emitPos(commentEnd);
115016 }
115017 /**
115018 * Determine if the given comment is a triple-slash
115019 *

Callers

nothing calls this directly

Calls 2

shouldWriteCommentFunction · 0.85
emitPosFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…