IsDeprecatedDeclaration reports whether the given declaration is marked as @deprecated. It checks NodeFlagsPossiblyContainsDeprecatedTag on combined node flags, then confirms by walking up to find the node with the flag and performing a JSDoc lookup.
(declaration *Node)
| 1215 | // It checks NodeFlagsPossiblyContainsDeprecatedTag on combined node flags, then confirms |
| 1216 | // by walking up to find the node with the flag and performing a JSDoc lookup. |
| 1217 | func IsDeprecatedDeclaration(declaration *Node) bool { |
| 1218 | return IsDeprecatedDeclarationWithCachedFlags(declaration, GetCombinedNodeFlags(declaration)) |
| 1219 | } |
| 1220 | |
| 1221 | // IsDeprecatedDeclarationWithCachedFlags is the core logic for IsDeprecatedDeclaration, |
| 1222 | // parameterized on pre-computed combined flags so the checker can supply cached flags. |
no test coverage detected