mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Introduce Decl::isUnavailable().
Replace calls to `AvailableAttr::isUnavailable()` with `Decl::isUnavailable()`.
This commit is contained in:
@@ -1000,7 +1000,7 @@ public:
|
||||
return true;
|
||||
|
||||
// Do not annotate references to unavailable decls.
|
||||
if (AvailableAttr::isUnavailable(D))
|
||||
if (D->isUnavailable())
|
||||
return true;
|
||||
|
||||
auto &SM = D->getASTContext().SourceMgr;
|
||||
|
||||
Reference in New Issue
Block a user