Remove unnecessary 'tryParse' (#18663)
This commit is contained in:
parent
b670b9763f
commit
30839378ac
1 changed files with 2 additions and 8 deletions
|
@ -6486,14 +6486,8 @@ namespace ts {
|
|||
}
|
||||
|
||||
function tryParseTypeExpression(): JSDocTypeExpression | undefined {
|
||||
return tryParse(() => {
|
||||
skipWhitespace();
|
||||
if (token() !== SyntaxKind.OpenBraceToken) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return parseJSDocTypeExpression();
|
||||
});
|
||||
skipWhitespace();
|
||||
return token() === SyntaxKind.OpenBraceToken ? parseJSDocTypeExpression() : undefined;
|
||||
}
|
||||
|
||||
function parseBracketNameInPropertyAndParamTag(): { name: EntityName, isBracketed: boolean } {
|
||||
|
|
Loading…
Reference in a new issue