mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Rename unresolvedProperty to unresolvedMember
to generalize for both properties and method members.
This commit is contained in:
@@ -737,7 +737,7 @@ ConstraintLocator *ConstraintSystem::getCalleeLocator(
|
||||
// For a subscript the callee is given by 'component -> subscript member'.
|
||||
return getConstraintLocator(
|
||||
anchor, {*componentElt, ConstraintLocator::SubscriptMember});
|
||||
case ComponentKind::UnresolvedProperty:
|
||||
case ComponentKind::UnresolvedMember:
|
||||
case ComponentKind::Member:
|
||||
// For a property, the choice is just given by the component.
|
||||
return getConstraintLocator(anchor, *componentElt);
|
||||
@@ -5104,7 +5104,7 @@ ConstraintSystem::inferKeyPathLiteralCapability(KeyPathExpr *keyPath) {
|
||||
LLVM_FALLTHROUGH;
|
||||
}
|
||||
case KeyPathExpr::Component::Kind::Member:
|
||||
case KeyPathExpr::Component::Kind::UnresolvedProperty: {
|
||||
case KeyPathExpr::Component::Kind::UnresolvedMember: {
|
||||
auto *componentLoc =
|
||||
getConstraintLocator(keyPath, LocatorPathElt::KeyPathComponent(i));
|
||||
auto *calleeLoc = getCalleeLocator(componentLoc);
|
||||
|
||||
Reference in New Issue
Block a user