mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CodeCompletion] Use a better API to retrieve
all the protocols a type conform to. Swift SVN r26694
This commit is contained in:
@@ -2013,13 +2013,7 @@ public:
|
||||
Protocols.end();
|
||||
};
|
||||
if (TD->getKind() != DeclKind::Protocol) {
|
||||
if (ContainsErrorProtocol(TD->getProtocols()))
|
||||
return true;
|
||||
auto ExRange = TD->getExtensions();
|
||||
for (auto It = ExRange.begin(); It != ExRange.end(); ++ It)
|
||||
if (ContainsErrorProtocol(It->getProtocols()))
|
||||
return true;
|
||||
return false;
|
||||
return ContainsErrorProtocol(TD->getAllProtocols(TypeResolver.get()));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user