File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -83,12 +83,6 @@ class SubstitutionMap {
83
83
// / Retrieve the conformances for the given type.
84
84
ArrayRef<ProtocolConformanceRef> getConformances (CanType type) const ;
85
85
86
- // / Look up the replacement for the given type parameter or interface type.
87
- // / Note that this only finds replacements for maps that are directly
88
- // / stored inside the map. In most cases, you should call Type::subst()
89
- // / instead, since that will resolve member types also.
90
- Type lookupSubstitution (CanSubstitutableType type) const ;
91
-
92
86
bool empty () const {
93
87
return subMap.empty ();
94
88
}
@@ -149,6 +143,13 @@ class SubstitutionMap {
149
143
private:
150
144
friend class GenericSignature ;
151
145
friend class GenericEnvironment ;
146
+ friend struct QuerySubstitutionMap ;
147
+
148
+ // / Look up the replacement for the given type parameter or interface type.
149
+ // / Note that this only finds replacements for maps that are directly
150
+ // / stored inside the map. In most cases, you should call Type::subst()
151
+ // / instead, since that will resolve member types also.
152
+ Type lookupSubstitution (CanSubstitutableType type) const ;
152
153
153
154
// You should not need to call these directly to build SubstitutionMaps;
154
155
// instead, use GenericSignature::getSubstitutionMap() or
You can’t perform that action at this time.
0 commit comments