We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
return
1 parent 94807e0 commit 9d75aa0Copy full SHA for 9d75aa0
1 file changed
src/comments.ts
@@ -49,7 +49,7 @@ export function forEachComment(
49
50
for (const token of iterateTokens(node, sourceFile)) {
51
if (token.pos === token.end) {
52
- return;
+ continue;
53
}
54
55
if (token.kind !== ts.SyntaxKind.JsxText) {
@@ -62,11 +62,7 @@ export function forEachComment(
62
63
64
if (notJsx || canHaveTrailingTrivia(token)) {
65
- return ts.forEachTrailingCommentRange(
66
- fullText,
67
- token.end,
68
- commentCallback,
69
- );
+ ts.forEachTrailingCommentRange(fullText, token.end, commentCallback);
70
71
72
0 commit comments