@@ -886,8 +886,8 @@ class ModuleDecl
886
886
// /
887
887
// / \returns An invalid conformance if the search failed, otherwise an
888
888
// / abstract, concrete or pack conformance, depending on the lookup type.
889
- ProtocolConformanceRef lookupConformance (Type type, ProtocolDecl *protocol,
890
- bool allowMissing = false );
889
+ static ProtocolConformanceRef lookupConformance (Type type, ProtocolDecl *protocol,
890
+ bool allowMissing = false );
891
891
892
892
// / Global conformance lookup, checks conditional requirements.
893
893
// / Requires a contextualized type.
@@ -903,9 +903,10 @@ class ModuleDecl
903
903
// /
904
904
// / \returns An invalid conformance if the search failed, otherwise an
905
905
// / abstract, concrete or pack conformance, depending on the lookup type.
906
- ProtocolConformanceRef checkConformance (Type type, ProtocolDecl *protocol,
907
- // Note: different default from lookupConformance
908
- bool allowMissing = true );
906
+ static ProtocolConformanceRef checkConformance (Type type, ProtocolDecl *protocol,
907
+ // Note: different default from
908
+ // lookupConformance
909
+ bool allowMissing = true );
909
910
910
911
// / Global conformance lookup, checks conditional requirements.
911
912
// / Accepts interface types without context. If the conformance cannot be
@@ -925,22 +926,23 @@ class ModuleDecl
925
926
// / if the search succeeded. `std::nullopt` if the type could have
926
927
// / conditionally conformed depending on the context of the interface types.
927
928
std::optional<ProtocolConformanceRef>
928
- checkConformanceWithoutContext (Type type,
929
- ProtocolDecl *protocol,
930
- // Note: different default from lookupConformance
931
- bool allowMissing = true );
929
+ static checkConformanceWithoutContext (Type type,
930
+ ProtocolDecl *protocol,
931
+ // Note: different default from
932
+ // lookupConformance
933
+ bool allowMissing = true );
932
934
933
935
934
936
// / Look for the conformance of the given existential type to the given
935
937
// / protocol.
936
- ProtocolConformanceRef lookupExistentialConformance (Type type,
937
- ProtocolDecl *protocol);
938
+ static ProtocolConformanceRef lookupExistentialConformance (Type type,
939
+ ProtocolDecl *protocol);
938
940
939
941
// / Collect the conformances of \c fromType to each of the protocols of an
940
942
// / existential type's layout.
941
943
ArrayRef<ProtocolConformanceRef>
942
- collectExistentialConformances (CanType fromType, CanType existential,
943
- bool allowMissing = false );
944
+ static collectExistentialConformances (CanType fromType, CanType existential,
945
+ bool allowMissing = false );
944
946
945
947
// / Find a member named \p name in \p container that was declared in this
946
948
// / module.
0 commit comments