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

Function removeTrailingWhitespace

test/fixtures/snapshot/typescript.js:37601–37605  ·  view source on GitHub ↗
(comments)

Source from the content-addressed store, hash-verified

37599 }
37600 }
37601 function removeTrailingWhitespace(comments) {
37602 while (comments.length && comments[comments.length - 1].trim() === "") {
37603 comments.pop();
37604 }
37605 }
37606 function isNextNonwhitespaceTokenEndOfFile() {
37607 // We must use infinite lookahead, as there could be any number of newlines :(
37608 while (true) {

Callers 2

parseJSDocCommentWorkerFunction · 0.85
parseTagCommentsFunction · 0.85

Calls 1

popMethod · 0.80

Tested by

no test coverage detected