Add @deprecated to tree walk (#43473)

So various things don't crash. Fixes #43472
This commit is contained in:
Nathan Shively-Sanders
2021-04-01 08:42:00 -07:00
committed by GitHub
parent 8f8a579eee
commit c6a2e45768
3 changed files with 127 additions and 0 deletions

View File

@@ -551,6 +551,7 @@ namespace ts {
case SyntaxKind.JSDocPrivateTag:
case SyntaxKind.JSDocProtectedTag:
case SyntaxKind.JSDocReadonlyTag:
case SyntaxKind.JSDocDeprecatedTag:
return visitNode(cbNode, (node as JSDocTag).tagName)
|| (typeof (node as JSDoc).comment === "string" ? undefined : visitNodes(cbNode, cbNodes, (node as JSDoc).comment as NodeArray<JSDocText | JSDocLink> | undefined));
case SyntaxKind.PartiallyEmittedExpression: