@@ -38,19 +38,19 @@ RequirementMachine::getLocalRequirements(
38
38
verify (term);
39
39
40
40
GenericSignature::LocalRequirements result;
41
- result.anchor = Context .getTypeForTerm (term, genericParams);
41
+ result.anchor = Map .getTypeForTerm (term, genericParams);
42
42
43
43
auto *props = Map.lookUpProperties (term);
44
44
if (!props)
45
45
return result;
46
46
47
47
if (props->isConcreteType ()) {
48
- result.concreteType = props->getConcreteType ({}, term, Context );
48
+ result.concreteType = props->getConcreteType ({}, term, Map );
49
49
return result;
50
50
}
51
51
52
52
if (props->hasSuperclassBound ()) {
53
- result.superclass = props->getSuperclassBound ({}, term, Context );
53
+ result.superclass = props->getSuperclassBound ({}, term, Map );
54
54
}
55
55
56
56
for (const auto *proto : props->getConformsToExcludingSuperclassConformances ())
@@ -152,7 +152,7 @@ getSuperclassBound(Type depType,
152
152
if (!props->hasSuperclassBound ())
153
153
return Type ();
154
154
155
- return props->getSuperclassBound (genericParams, term, Context );
155
+ return props->getSuperclassBound (genericParams, term, Map );
156
156
}
157
157
158
158
bool RequirementMachine::isConcreteType (Type depType) const {
@@ -183,7 +183,7 @@ getConcreteType(Type depType,
183
183
if (!props->isConcreteType ())
184
184
return Type ();
185
185
186
- return props->getConcreteType (genericParams, term, Context );
186
+ return props->getConcreteType (genericParams, term, Map );
187
187
}
188
188
189
189
bool RequirementMachine::areSameTypeParameterInContext (Type depType1,
@@ -277,7 +277,7 @@ bool RequirementMachine::isCanonicalTypeInContext(Type type) const {
277
277
Self.System .simplify (term);
278
278
Self.verify (term);
279
279
280
- auto anchor = Self.Context .getTypeForTerm (term, {});
280
+ auto anchor = Self.Map .getTypeForTerm (term, {});
281
281
if (CanType (anchor) != CanType (component))
282
282
return Action::Stop;
283
283
@@ -353,7 +353,7 @@ Type RequirementMachine::getCanonicalTypeInContext(
353
353
if (props) {
354
354
if (props->isConcreteType ()) {
355
355
auto concreteType = props->getConcreteType (genericParams,
356
- prefix, Context );
356
+ prefix, Map );
357
357
if (!concreteType->hasTypeParameter ())
358
358
return concreteType;
359
359
@@ -368,7 +368,7 @@ Type RequirementMachine::getCanonicalTypeInContext(
368
368
if (props->hasSuperclassBound () &&
369
369
prefix.size () != term.size ()) {
370
370
auto superclass = props->getSuperclassBound (genericParams,
371
- prefix, Context );
371
+ prefix, Map );
372
372
if (!superclass->hasTypeParameter ())
373
373
return superclass;
374
374
@@ -377,7 +377,7 @@ Type RequirementMachine::getCanonicalTypeInContext(
377
377
}
378
378
}
379
379
380
- return Context .getTypeForTerm (prefix, genericParams);
380
+ return Map .getTypeForTerm (prefix, genericParams);
381
381
}();
382
382
383
383
// If T is already valid, the longest valid prefix U of T is T itself, and
@@ -402,7 +402,7 @@ Type RequirementMachine::getCanonicalTypeInContext(
402
402
403
403
// Compute the type of the unresolved suffix term V, rooted in the
404
404
// generic parameter τ_0_0.
405
- auto origType = Context .getRelativeTypeForTerm (term, prefix);
405
+ auto origType = Map .getRelativeTypeForTerm (term, prefix);
406
406
407
407
// Substitute τ_0_0 in the above relative type with the concrete type
408
408
// for U.
0 commit comments