File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
lib/AST/RequirementMachine Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ Type PropertyMap::getRelativeTypeForTerm(
393
393
// / have a depth of 0, and an index into an array of substitution terms.
394
394
// /
395
395
// / See RewriteSystemBuilder::getConcreteSubstitutionSchema().
396
- static unsigned getGenericParamIndex (Type type) {
396
+ unsigned RewriteContext:: getGenericParamIndex (Type type) {
397
397
auto *paramTy = type->castTo <GenericTypeParamType>();
398
398
assert (paramTy->getDepth () == 0 );
399
399
return paramTy->getIndex ();
@@ -472,7 +472,7 @@ Type PropertyMap::getTypeFromSubstitutionSchema(
472
472
473
473
return schema.transformRec ([&](Type t) -> Optional<Type> {
474
474
if (t->is <GenericTypeParamType>()) {
475
- auto index = getGenericParamIndex (t);
475
+ auto index = RewriteContext:: getGenericParamIndex (t);
476
476
auto substitution = substitutions[index];
477
477
478
478
// Prepend the prefix of the lookup key to the substitution.
Original file line number Diff line number Diff line change @@ -162,6 +162,8 @@ class RewriteContext final {
162
162
// /
163
163
// ////////////////////////////////////////////////////////////////////////////
164
164
165
+ static unsigned getGenericParamIndex (Type type);
166
+
165
167
Term getTermForType (CanType paramType, const ProtocolDecl *proto);
166
168
167
169
MutableTerm getMutableTermForType (CanType paramType,
You can’t perform that action at this time.
0 commit comments