MCPcopy Create free account
hub / github.com/nodejs/node / emitLeadingCommentsOfPosition

Function emitLeadingCommentsOfPosition

test/fixtures/snapshot/typescript.js:114910–114915  ·  view source on GitHub ↗
(pos)

Source from the content-addressed store, hash-verified

114908 }
114909 }
114910 function emitLeadingCommentsOfPosition(pos) {
114911 if (commentsDisabled || pos === -1) {
114912 return;
114913 }
114914 emitLeadingComments(pos, /*isEmittedNode*/ true);
114915 }
114916 function emitTrailingComments(pos) {
114917 forEachTrailingCommentToEmit(pos, emitTrailingComment);
114918 }

Callers 4

onOperatorFunction · 0.85
emitTokenWithCommentFunction · 0.85
emitNodeListFunction · 0.85

Calls 1

emitLeadingCommentsFunction · 0.85

Tested by

no test coverage detected