@@ -9444,15 +9444,13 @@ namespace Parser {
94449444 }
94459445
94469446 function parseSeeTag(start: number, tagName: Identifier, indent?: number, indentText?: string): JSDocSeeTag {
9447- const isMarkdownOrJSDocLink = token() === SyntaxKind.OpenBracketToken
9448- || lookAhead(() => nextTokenJSDoc() === SyntaxKind.AtToken && tokenIsIdentifierOrKeyword(nextTokenJSDoc()) && isJSDocLinkTag(scanner.getTokenValue()));
9449- const nameExpression = isMarkdownOrJSDocLink ? undefined : parseJSDocNameReference();
9447+ const nameExpression = isMarkdownOrJSDocLink() ? undefined : parseJSDocNameReference();
94509448 const comments = indent !== undefined && indentText !== undefined ? parseTrailingTagComments(start, getNodePos(), indent, indentText) : undefined;
94519449 return finishNode(factory.createJSDocSeeTag(tagName, nameExpression, comments), start);
94529450 }
94539451
94549452 function parseThrowsTag(start: number, tagName: Identifier, indent: number, indentText: string): JSDocThrowsTag {
9455- const typeExpression = tryParseTypeExpression();
9453+ const typeExpression = isMarkdownOrJSDocLink() ? undefined : tryParseTypeExpression();
94569454 const comment = parseTrailingTagComments(start, getNodePos(), indent, indentText);
94579455 return finishNode(factory.createJSDocThrowsTag(tagName, typeExpression, comment), start);
94589456 }
@@ -9881,6 +9879,10 @@ namespace Parser {
98819879 nextTokenJSDoc();
98829880 return result;
98839881 }
9882+
9883+ function isMarkdownOrJSDocLink() {
9884+ return token() === SyntaxKind.OpenBracketToken || lookAhead(() => nextTokenJSDoc() === SyntaxKind.AtToken && tokenIsIdentifierOrKeyword(nextTokenJSDoc()) && isJSDocLinkTag(scanner.getTokenValue()));
9885+ }
98849886 }
98859887 }
98869888}
0 commit comments