@@ -157,16 +157,14 @@ class alignas(1 << DeclAlignInBits) GenericEnvironment final
157
157
friend ArchetypeType;
158
158
friend QueryInterfaceTypeSubstitutions;
159
159
160
- Type getOrCreateArchetypeFromInterfaceType (Type depType);
161
-
162
- // / Add a mapping of a generic parameter to a specific type (which may be
163
- // / an archetype)
164
- void addMapping (GenericParamKey key, Type contextType);
160
+ // / Add a mapping of a type parameter to a contextual type, usually
161
+ // / an archetype.
162
+ void addMapping (CanType depType, Type contextType);
165
163
166
- // / Retrieve the mapping for the given generic parameter, if present.
164
+ // / Retrieve the mapping for the given type parameter, if present.
167
165
// /
168
166
// / This is only useful when lazily populating a generic environment.
169
- std::optional< Type> getMappingIfPresent (GenericParamKey key ) const ;
167
+ Type getMappingIfPresent (CanType depType ) const ;
170
168
171
169
public:
172
170
GenericSignature getGenericSignature () const {
@@ -283,13 +281,12 @@ class alignas(1 << DeclAlignInBits) GenericEnvironment final
283
281
// / Map an interface type to a contextual type.
284
282
Type mapTypeIntoContext (Type type) const ;
285
283
286
- // / Map an interface type to a contextual type.
287
- Type mapTypeIntoContext (Type type,
288
- LookupConformanceFn lookupConformance) const ;
289
-
290
284
// / Map a generic parameter type to a contextual type.
291
285
Type mapTypeIntoContext (GenericTypeParamType *type) const ;
292
286
287
+ // / Map a type parameter type to a contextual type.
288
+ Type getOrCreateArchetypeFromInterfaceType (Type depType);
289
+
293
290
// / Map an interface type containing parameter packs to a contextual
294
291
// / type in the opened element generic context.
295
292
Type mapPackTypeIntoElementContext (Type type) const ;
0 commit comments