mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] clean-up collectExistentialConformances
This commit is contained in:
@@ -853,8 +853,10 @@ public:
|
|||||||
ProtocolConformanceRef conformsToProtocol(Type sourceTy,
|
ProtocolConformanceRef conformsToProtocol(Type sourceTy,
|
||||||
ProtocolDecl *targetProtocol);
|
ProtocolDecl *targetProtocol);
|
||||||
|
|
||||||
/// Collect the conformances of \c fromType each of the protocols of an
|
/// Collect the conformances of \c fromType to each of the protocols of an
|
||||||
/// existential type's layout.
|
/// existential type's layout.
|
||||||
|
///
|
||||||
|
/// See `TypeChecker::containsProtocol` for details on the boolean arguments.
|
||||||
ArrayRef<ProtocolConformanceRef>
|
ArrayRef<ProtocolConformanceRef>
|
||||||
collectExistentialConformances(CanType fromType, CanType existential,
|
collectExistentialConformances(CanType fromType, CanType existential,
|
||||||
bool skipConditionalRequirements = true,
|
bool skipConditionalRequirements = true,
|
||||||
|
|||||||
@@ -345,10 +345,6 @@ private:
|
|||||||
CanType existential,
|
CanType existential,
|
||||||
bool skipConditionalRequirements,
|
bool skipConditionalRequirements,
|
||||||
bool allowMissing) const;
|
bool allowMissing) const;
|
||||||
|
|
||||||
public:
|
|
||||||
// Caching.
|
|
||||||
bool isCached() const { return true; }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Determine whether an existential type conforming to this protocol
|
/// Determine whether an existential type conforming to this protocol
|
||||||
|
|||||||
Reference in New Issue
Block a user