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

Function emitCommentsBeforeNode

test/fixtures/snapshot/typescript.js:114706–114714  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

114704 emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
114705 }
114706 function emitCommentsBeforeNode(node) {
114707 var emitFlags = ts.getEmitFlags(node);
114708 var commentRange = ts.getCommentRange(node);
114709 // Emit leading comments
114710 emitLeadingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end);
114711 if (emitFlags & 2048 /* EmitFlags.NoNestedComments */) {
114712 commentsDisabled = true;
114713 }
114714 }
114715 function emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd) {
114716 var emitFlags = ts.getEmitFlags(node);
114717 var commentRange = ts.getCommentRange(node);

Callers 2

onEnterFunction · 0.85
pipelineEmitWithCommentsFunction · 0.85

Calls 1

Tested by

no test coverage detected