mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Rename @lvalue Locator Path Element
8271c1a removed the last hacky usage of ArrayElementType,
leaving behind just the @lvalue-to-inout conversions. Rename
the locator path element to reflect this and do a bit of cleanup on the
unrelated-but-near-enough other hack RValueAdjustment.
This commit is contained in:
@@ -1571,7 +1571,7 @@ resolveOverloadForDeclWithSpecialTypeCheckingSemantics(ConstraintSystem &CS,
|
||||
auto inputTuple = TupleType::get(inputArg, CS.getASTContext());
|
||||
|
||||
CS.addConstraint(ConstraintKind::DynamicTypeOf, output, input,
|
||||
CS.getConstraintLocator(locator, ConstraintLocator::RvalueAdjustment));
|
||||
CS.getConstraintLocator(locator, ConstraintLocator::RValueAdjustment));
|
||||
refType = FunctionType::get(inputTuple, output);
|
||||
openedFullType = refType;
|
||||
return true;
|
||||
@@ -1586,7 +1586,7 @@ resolveOverloadForDeclWithSpecialTypeCheckingSemantics(ConstraintSystem &CS,
|
||||
CS.getConstraintLocator(locator, ConstraintLocator::FunctionArgument));
|
||||
CS.addConstraint(ConstraintKind::EscapableFunctionOf,
|
||||
escapeClosure, noescapeClosure,
|
||||
CS.getConstraintLocator(locator, ConstraintLocator::RvalueAdjustment));
|
||||
CS.getConstraintLocator(locator, ConstraintLocator::RValueAdjustment));
|
||||
auto result = CS.createTypeVariable(
|
||||
CS.getConstraintLocator(locator, ConstraintLocator::FunctionResult));
|
||||
auto bodyClosure = FunctionType::get(
|
||||
@@ -1618,7 +1618,7 @@ resolveOverloadForDeclWithSpecialTypeCheckingSemantics(ConstraintSystem &CS,
|
||||
CS.getConstraintLocator(locator, ConstraintLocator::FunctionArgument));
|
||||
CS.addConstraint(ConstraintKind::OpenedExistentialOf,
|
||||
openedTy, existentialTy,
|
||||
CS.getConstraintLocator(locator, ConstraintLocator::RvalueAdjustment));
|
||||
CS.getConstraintLocator(locator, ConstraintLocator::RValueAdjustment));
|
||||
auto result = CS.createTypeVariable(
|
||||
CS.getConstraintLocator(locator, ConstraintLocator::FunctionResult));
|
||||
auto bodyClosure = FunctionType::get(
|
||||
|
||||
Reference in New Issue
Block a user