Skip to content

Commit c46c777

Browse files
committed
RequirementMachine: Rename remapConcreteSubstitutionSchema() to getRelativeSubstitutionSchemaFromType()
1 parent 01ba790 commit c46c777

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

lib/AST/RequirementMachine/InterfaceType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ Type PropertyMap::getTypeFromSubstitutionSchema(
515515
/// the original substitutions {X.Y} to produce the new schema Foo<τ_0_0>
516516
/// with substitutions {X.Y.A.B}.
517517
CanType
518-
RewriteContext::remapConcreteSubstitutionSchema(
518+
RewriteContext::getRelativeSubstitutionSchemaFromType(
519519
CanType concreteType,
520520
ArrayRef<Term> substitutions,
521521
SmallVectorImpl<Term> &result) {

lib/AST/RequirementMachine/PropertyUnification.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ namespace {
183183
lhsSubstitutions);
184184

185185
SmallVector<Term, 3> result;
186-
auto concreteType = ctx.remapConcreteSubstitutionSchema(
186+
auto concreteType = ctx.getRelativeSubstitutionSchemaFromType(
187187
CanType(secondType), rhsSubstitutions, result);
188188

189189
MutableTerm constraintTerm(subjectTerm);
@@ -204,7 +204,7 @@ namespace {
204204
rhsSubstitutions);
205205

206206
SmallVector<Term, 3> result;
207-
auto concreteType = ctx.remapConcreteSubstitutionSchema(
207+
auto concreteType = ctx.getRelativeSubstitutionSchemaFromType(
208208
CanType(firstType), lhsSubstitutions, result);
209209

210210
MutableTerm constraintTerm(subjectTerm);
@@ -842,8 +842,8 @@ MutableTerm PropertyMap::computeConstraintTermForTypeWitness(
842842
// Compute the concrete type symbol [concrete: C.X].
843843
SmallVector<Term, 3> result;
844844
auto typeWitnessSchema =
845-
Context.remapConcreteSubstitutionSchema(typeWitness, substitutions,
846-
result);
845+
Context.getRelativeSubstitutionSchemaFromType(typeWitness, substitutions,
846+
result);
847847
auto typeWitnessSymbol =
848848
Symbol::forConcreteType(typeWitnessSchema, result, Context);
849849

lib/AST/RequirementMachine/RewriteContext.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ class RewriteContext final {
174174
const ProtocolDecl *proto,
175175
SmallVectorImpl<Term> &result);
176176

177-
CanType remapConcreteSubstitutionSchema(CanType concreteType,
178-
ArrayRef<Term> substitutions,
179-
SmallVectorImpl<Term> &result);
177+
CanType getRelativeSubstitutionSchemaFromType(CanType concreteType,
178+
ArrayRef<Term> substitutions,
179+
SmallVectorImpl<Term> &result);
180180

181181
AssociatedTypeDecl *getAssociatedTypeForSymbol(Symbol symbol);
182182

0 commit comments

Comments
 (0)