mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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>())
|
||||
|
||||
Reference in New Issue
Block a user