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

Function emitNonTripleSlashLeadingComment

test/fixtures/snapshot/typescript.js:114881–114885  ·  view source on GitHub ↗
(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos)

Source from the content-addressed store, hash-verified

114879 }
114880 }
114881 function emitNonTripleSlashLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) {
114882 if (!isTripleSlashComment(commentPos, commentEnd)) {
114883 emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos);
114884 }
114885 }
114886 function shouldWriteComment(text, pos) {
114887 if (printerOptions.onlyPrintJsDocStyle) {
114888 return (ts.isJSDocLikeText(text, pos) || ts.isPinnedComment(text, pos));

Callers

nothing calls this directly

Calls 2

isTripleSlashCommentFunction · 0.85
emitLeadingCommentFunction · 0.85

Tested by

no test coverage detected