mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Return SemanticAvailableAttr from Decl::getUnavailableAttr().
This commit is contained in:
@@ -111,7 +111,7 @@ SymbolGraph *SymbolGraphASTWalker::getModuleSymbolGraph(const Decl *D) {
|
||||
}
|
||||
|
||||
static bool isUnavailableOrObsoletedOnPlatform(const Decl *D) {
|
||||
if (const auto *Avail = D->getUnavailableAttr()) {
|
||||
if (const auto Avail = D->getUnavailableAttr()) {
|
||||
if (Avail->getPlatform() != PlatformKind::none)
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user