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

Function emitCommentsAfterNode

test/fixtures/snapshot/typescript.js:114715–114727  ·  view source on GitHub ↗
(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd)

Source from the content-addressed store, hash-verified

114713 }
114714 }
114715 function emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd) {
114716 var emitFlags = ts.getEmitFlags(node);
114717 var commentRange = ts.getCommentRange(node);
114718 // Emit trailing comments
114719 if (emitFlags & 2048 /* EmitFlags.NoNestedComments */) {
114720 commentsDisabled = false;
114721 }
114722 emitTrailingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
114723 var typeNode = ts.getTypeNode(node);
114724 if (typeNode) {
114725 emitTrailingCommentsOfNode(node, emitFlags, typeNode.pos, typeNode.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
114726 }
114727 }
114728 function emitLeadingCommentsOfNode(node, emitFlags, pos, end) {
114729 enterComment();
114730 hasWrittenComment = false;

Callers 2

onExitFunction · 0.85
pipelineEmitWithCommentsFunction · 0.85

Calls 1

Tested by

no test coverage detected