@@ -13146,7 +13146,7 @@ namespace ts {
13146
13146
if (propName !== undefined) {
13147
13147
const prop = getPropertyOfType(objectType, propName);
13148
13148
if (prop) {
13149
- if (accessNode && prop.isDeprecated ) {
13149
+ if (accessNode && prop.flags & SymbolFlags.Deprecated ) {
13150
13150
const deprecatedNode = accessExpression?.argumentExpression ?? (isIndexedAccessTypeNode(accessNode) ? accessNode.indexType : accessNode);
13151
13151
errorOrSuggestion(/* isError */ false, deprecatedNode, Diagnostics._0_is_deprecated, propName as string);
13152
13152
}
@@ -21681,7 +21681,7 @@ namespace ts {
21681
21681
let declaration: Declaration | undefined = localOrExportSymbol.valueDeclaration;
21682
21682
21683
21683
const target = (symbol.flags & SymbolFlags.Alias ? resolveAlias(symbol) : symbol);
21684
- if (target.isDeprecated ) {
21684
+ if (target.flags & SymbolFlags.Deprecated ) {
21685
21685
errorOrSuggestion(/* isError */ false, node, Diagnostics._0_is_deprecated, node.escapedText as string);
21686
21686
}
21687
21687
if (localOrExportSymbol.flags & SymbolFlags.Class) {
@@ -24654,7 +24654,7 @@ namespace ts {
24654
24654
propType = indexInfo.type;
24655
24655
}
24656
24656
else {
24657
- if (prop.isDeprecated ) {
24657
+ if (prop.flags & SymbolFlags.Deprecated ) {
24658
24658
errorOrSuggestion(/* isError */ false, right, Diagnostics._0_is_deprecated, right.escapedText as string);
24659
24659
}
24660
24660
@@ -30480,7 +30480,7 @@ namespace ts {
30480
30480
}
30481
30481
const symbol = getNodeLinks(node).resolvedSymbol;
30482
30482
if (symbol) {
30483
- if (symbol.isDeprecated ) {
30483
+ if (symbol.flags & SymbolFlags.Deprecated ) {
30484
30484
const diagLocation = isTypeReferenceNode(node) && isQualifiedName(node.typeName) ? node.typeName.right : node;
30485
30485
errorOrSuggestion(/* isError */ false, diagLocation, Diagnostics._0_is_deprecated, symbol.escapedName as string);
30486
30486
}
@@ -34821,7 +34821,7 @@ namespace ts {
34821
34821
}
34822
34822
}
34823
34823
34824
- if (isImportSpecifier(node) && target.isDeprecated ) {
34824
+ if (isImportSpecifier(node) && target.flags & SymbolFlags.Deprecated ) {
34825
34825
errorOrSuggestion(/* isError */ false, node.name, Diagnostics._0_is_deprecated, symbol.escapedName as string);
34826
34826
}
34827
34827
}
0 commit comments