AST: Introduce Decl::isUnavailable().

Replace calls to `AvailableAttr::isUnavailable()` with `Decl::isUnavailable()`.
This commit is contained in:
Allan Shortlidge
2024-11-23 17:39:07 -08:00
parent 94f4b0598a
commit 1dc7aa5b7b
19 changed files with 41 additions and 26 deletions

View File

@@ -804,7 +804,7 @@ struct DeclInfo {
// The synthesized properties $foo and _foo aren't unavailable even if
// the original property foo is, so check them rather than the original
// property.
Unavailable = AvailableAttr::isUnavailable(VD);
Unavailable = VD->isUnavailable();
// No point computing the rest since they won't be used anyway.
if (Unavailable)
return;