Skip to content

Commit b7a170c

Browse files
committed
[NFC][ConstraintSystem] Rename applyPropertyWrapperParameter.
1 parent db38727 commit b7a170c

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

include/swift/Sema/ConstraintSystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4644,7 +4644,7 @@ class ConstraintSystem {
46444644

46454645
/// Matches a wrapped or projected value parameter type to its backing
46464646
/// property wrapper type by applying the property wrapper.
4647-
TypeMatchResult applyPropertyWrapperParameter(
4647+
TypeMatchResult applyPropertyWrapperToParameter(
46484648
Type wrapperType, Type paramType, ParamDecl *param, Identifier argLabel,
46494649
ConstraintKind matchKind, ConstraintLocatorBuilder locator);
46504650

lib/Sema/CSGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4053,7 +4053,7 @@ bool ConstraintSystem::generateConstraints(
40534053
}
40544054

40554055
ConstraintSystem::TypeMatchResult
4056-
ConstraintSystem::applyPropertyWrapperParameter(
4056+
ConstraintSystem::applyPropertyWrapperToParameter(
40574057
Type wrapperType, Type paramType, ParamDecl *param, Identifier argLabel,
40584058
ConstraintKind matchKind, ConstraintLocatorBuilder locator) {
40594059
Expr *anchor = getAsExpr(locator.getAnchor());

lib/Sema/CSSimplify.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,8 +1423,8 @@ ConstraintSystem::TypeMatchResult constraints::matchCallArguments(
14231423
auto *wrappedParam = paramInfo.getPropertyWrapperParam(argIdx);
14241424
auto argLabel = argument.getLabel();
14251425
if (wrappedParam || argLabel.hasDollarPrefix()) {
1426-
if (cs.applyPropertyWrapperParameter(paramTy, argTy, const_cast<ParamDecl *>(wrappedParam),
1427-
argLabel, subKind, locator).isFailure()) {
1426+
if (cs.applyPropertyWrapperToParameter(paramTy, argTy, const_cast<ParamDecl *>(wrappedParam),
1427+
argLabel, subKind, locator).isFailure()) {
14281428
return cs.getTypeMatchFailure(loc);
14291429
}
14301430
continue;
@@ -8228,9 +8228,9 @@ bool ConstraintSystem::resolveClosure(TypeVariableType *typeVar,
82288228
}
82298229

82308230
if (!hasError) {
8231-
auto result = applyPropertyWrapperParameter(backingType, param.getParameterType(),
8232-
paramDecl, paramDecl->getName(),
8233-
ConstraintKind::Equal, locator);
8231+
auto result = applyPropertyWrapperToParameter(backingType, param.getParameterType(),
8232+
paramDecl, paramDecl->getName(),
8233+
ConstraintKind::Equal, locator);
82348234
if (result.isFailure())
82358235
return false;
82368236

lib/Sema/ConstraintSystem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,8 +1203,8 @@ unwrapPropertyWrapperParameterTypes(ConstraintSystem &cs, AbstractFunctionDecl *
12031203
auto paramType = paramTypes[i].getParameterType();
12041204
auto paramLabel = paramTypes[i].getLabel();
12051205
adjustedParamTypes.push_back(AnyFunctionType::Param(wrappedType, paramLabel));
1206-
cs.applyPropertyWrapperParameter(paramType, wrappedType, paramDecl, argLabel,
1207-
ConstraintKind::Equal, locator);
1206+
cs.applyPropertyWrapperToParameter(paramType, wrappedType, paramDecl, argLabel,
1207+
ConstraintKind::Equal, locator);
12081208
}
12091209

12101210
return FunctionType::get(adjustedParamTypes, functionType->getResult(),

0 commit comments

Comments
 (0)