[NFC] ConstraintSystem: Rename openExistentialType to openAnyExistentialType

This method can open an existential metatype too, and we already use
`isAnyExistentialType` to mean "existential type or existential
metatype"
This commit is contained in:
Anthony Latsis
2024-12-18 18:06:11 +00:00
parent 55189bae8e
commit fc1ad79ddd
3 changed files with 12 additions and 10 deletions

View File

@@ -853,8 +853,9 @@ ConstraintLocator *ConstraintSystem::getOpenOpaqueLocator(
{ LocatorPathElt::OpenedOpaqueArchetype(opaqueDecl) }, 0);
}
std::pair<Type, OpenedArchetypeType *> ConstraintSystem::openExistentialType(
Type type, ConstraintLocator *locator) {
std::pair<Type, OpenedArchetypeType *>
ConstraintSystem::openAnyExistentialType(Type type,
ConstraintLocator *locator) {
Type result = OpenedArchetypeType::getAny(type);
Type t = result;
while (t->is<MetatypeType>())