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.
1 parent b670b97 commit 3083937Copy full SHA for 3083937
src/compiler/parser.ts
@@ -6486,14 +6486,8 @@ namespace ts {
6486
}
6487
6488
function tryParseTypeExpression(): JSDocTypeExpression | undefined {
6489
- return tryParse(() => {
6490
- skipWhitespace();
6491
- if (token() !== SyntaxKind.OpenBraceToken) {
6492
- return undefined;
6493
- }
6494
-
6495
- return parseJSDocTypeExpression();
6496
- });
+ skipWhitespace();
+ return token() === SyntaxKind.OpenBraceToken ? parseJSDocTypeExpression() : undefined;
6497
6498
6499
function parseBracketNameInPropertyAndParamTag(): { name: EntityName, isBracketed: boolean } {
0 commit comments