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

Function emitNewLineBeforeLeadingComments

test/fixtures/snapshot/typescript.js:18684–18686  ·  view source on GitHub ↗
(lineMap, writer, node, leadingComments)

Source from the content-addressed store, hash-verified

18682 }
18683 ts.getEffectiveSetAccessorTypeAnnotationNode = getEffectiveSetAccessorTypeAnnotationNode;
18684 function emitNewLineBeforeLeadingComments(lineMap, writer, node, leadingComments) {
18685 emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, node.pos, leadingComments);
18686 }
18687 ts.emitNewLineBeforeLeadingComments = emitNewLineBeforeLeadingComments;
18688 function emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, pos, leadingComments) {
18689 // If the leading comments start on different line than the start of node, write new line

Callers 1

emitDetachedCommentsFunction · 0.85

Tested by

no test coverage detected