mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove code completion's dependencies on getProtocols().
Swift SVN r27976
This commit is contained in:
@@ -1888,7 +1888,7 @@ public:
|
||||
|
||||
if (auto *GP = dyn_cast<GenericTypeParamDecl>(D)) {
|
||||
addGenericTypeParamRef(GP, Reason);
|
||||
for (auto *protocol : GP->getProtocols())
|
||||
for (auto *protocol : GP->getConformingProtocols(nullptr))
|
||||
addConstructorCallsForType(protocol->getType(), GP->getName(),
|
||||
Reason);
|
||||
return;
|
||||
@@ -1950,7 +1950,7 @@ public:
|
||||
|
||||
if (auto *GP = dyn_cast<GenericTypeParamDecl>(D)) {
|
||||
addGenericTypeParamRef(GP, Reason);
|
||||
for (auto *protocol : GP->getProtocols())
|
||||
for (auto *protocol : GP->getConformingProtocols(nullptr))
|
||||
addConstructorCallsForType(protocol->getType(), GP->getName(),
|
||||
Reason);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user