mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Introduce Decl::isUnavailable().
Replace calls to `AvailableAttr::isUnavailable()` with `Decl::isUnavailable()`.
This commit is contained in:
@@ -1767,8 +1767,8 @@ SDKContext::shouldIgnore(Decl *D, const Decl* Parent) const {
|
||||
if (D->isPrivateSystemDecl(false))
|
||||
return true;
|
||||
}
|
||||
if (AvailableAttr::isUnavailable(D))
|
||||
return true;
|
||||
if (D->isUnavailable())
|
||||
return true;
|
||||
if (auto VD = dyn_cast<ValueDecl>(D)) {
|
||||
switch (getAccessLevel(VD)) {
|
||||
case AccessLevel::Internal:
|
||||
|
||||
Reference in New Issue
Block a user