Skip to content

Commit f673904

Browse files
author
Andy Hanson
committed
Remove duplicate case in parseJsDocCommentWorker
1 parent 6adb9d1 commit f673904

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/compiler/parser.ts

Lines changed: 3 additions & 8 deletions
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)