mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Generalize ProtocolDecl::getPrimaryAssociatedType() to ProtocolDecl::getPrimaryAssociatedTypes()
This commit is contained in:
@@ -5398,9 +5398,10 @@ bool ProtocolDecl::existentialRequiresAny() const {
|
||||
ExistentialRequiresAnyRequest{const_cast<ProtocolDecl *>(this)}, true);
|
||||
}
|
||||
|
||||
AssociatedTypeDecl *ProtocolDecl::getPrimaryAssociatedType() const {
|
||||
ArrayRef<AssociatedTypeDecl *>
|
||||
ProtocolDecl::getPrimaryAssociatedTypes() const {
|
||||
return evaluateOrDefault(getASTContext().evaluator,
|
||||
PrimaryAssociatedTypeRequest{const_cast<ProtocolDecl *>(this)},
|
||||
PrimaryAssociatedTypesRequest{const_cast<ProtocolDecl *>(this)},
|
||||
nullptr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user