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

Function shouldWriteComment

test/fixtures/snapshot/typescript.js:114886–114891  ·  view source on GitHub ↗
(text, pos)

Source from the content-addressed store, hash-verified

114884 }
114885 }
114886 function shouldWriteComment(text, pos) {
114887 if (printerOptions.onlyPrintJsDocStyle) {
114888 return (ts.isJSDocLikeText(text, pos) || ts.isPinnedComment(text, pos));
114889 }
114890 return true;
114891 }
114892 function emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) {
114893 if (!currentSourceFile || !shouldWriteComment(currentSourceFile.text, commentPos))
114894 return;

Callers 3

emitLeadingCommentFunction · 0.85
emitTrailingCommentFunction · 0.85
emitCommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…