MCPcopy Create free account
hub / github.com/microsoft/typescript-go / IsDeprecatedDeclaration

Method IsDeprecatedDeclaration

internal/checker/checker.go:13959–13961  ·  view source on GitHub ↗
(declaration *ast.Node)

Source from the content-addressed store, hash-verified

13957}
13958
13959func (c *Checker) IsDeprecatedDeclaration(declaration *ast.Node) bool {
13960 return ast.IsDeprecatedDeclarationWithCachedFlags(declaration, c.getCombinedNodeFlagsCached(declaration))
13961}
13962
13963func (c *Checker) addDeprecatedSuggestion(location *ast.Node, declarations []*ast.Node, deprecatedEntity string) *ast.Diagnostic {
13964 diagnostic := NewDiagnosticForNode(location, diagnostics.X_0_is_deprecated, deprecatedEntity)

Tested by

no test coverage detected