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

Function pushComment

test/fixtures/snapshot/typescript.js:37498–37504  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

37496 // + 1 because the last index of \n is always one index before the first character in the line and coincidentally, if there is no \n before start, it is -1, which is also one index before the first character
37497 var indent = start - (content.lastIndexOf("\n", start) + 1) + 4;
37498 function pushComment(text) {
37499 if (!margin) {
37500 margin = indent;
37501 }
37502 comments.push(text);
37503 indent += text.length;
37504 }
37505 nextTokenJSDoc();
37506 while (parseOptionalJsdoc(5 /* SyntaxKind.WhitespaceTrivia */))
37507 ;

Callers 2

parseJSDocCommentWorkerFunction · 0.85
parseTagCommentsFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected