[NFC] Rename unresolvedProperty to unresolvedMember

to generalize for both properties and method members.
This commit is contained in:
Amritpan Kaur
2024-09-04 17:09:40 -07:00
parent 8f71f5c780
commit 811d54901b
13 changed files with 42 additions and 39 deletions

View File

@@ -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);