mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 01:49:57 -05:00
Add @deprecated to tree walk (#43473)
So various things don't crash. Fixes #43472
This commit is contained in:
committed by
GitHub
parent
8f8a579eee
commit
c6a2e45768
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user