Skip to content

Commit deeb401

Browse files
author
Andy
authored
Remove duplicate case in parseJsDocCommentWorker (microsoft#27164)
1 parent 10edf6f commit deeb401

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/compiler/parser.ts

+3-8
Original file line numberDiff line numberDiff line change
@@ -6441,13 +6441,6 @@ namespace ts {
64416441
indent += asterisk.length;
64426442
}
64436443
break;
6444-
case SyntaxKind.Identifier:
6445-
// Anything else is doc comment text. We just save it. Because it
6446-
// wasn't a tag, we can no longer parse a tag on this line until we hit the next
6447-
// line break.
6448-
pushComment(scanner.getTokenText());
6449-
state = JSDocState.SavingComments;
6450-
break;
64516444
case SyntaxKind.WhitespaceTrivia:
64526445
// only collect whitespace if we're already saving comments or have just crossed the comment indent margin
64536446
const whitespace = scanner.getTokenText();
@@ -6462,7 +6455,9 @@ namespace ts {
64626455
case SyntaxKind.EndOfFileToken:
64636456
break loop;
64646457
default:
6465-
// anything other than whitespace or asterisk at the beginning of the line starts the comment text
6458+
// Anything else is doc comment text. We just save it. Because it
6459+
// wasn't a tag, we can no longer parse a tag on this line until we hit the next
6460+
// line break.
64666461
state = JSDocState.SavingComments;
64676462
pushComment(scanner.getTokenText());
64686463
break;

0 commit comments

Comments
 (0)