mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Move resolveTypeInContext to TypeResolution
This commit is contained in:
@@ -1291,12 +1291,12 @@ ConstraintSystem::getTypeOfReference(ValueDecl *value,
|
||||
// Unqualified reference to a type.
|
||||
if (auto typeDecl = dyn_cast<TypeDecl>(value)) {
|
||||
// Resolve the reference to this type declaration in our current context.
|
||||
auto type = TypeChecker::resolveTypeInContext(
|
||||
typeDecl, nullptr,
|
||||
auto type =
|
||||
TypeResolution::forContextual(useDC, TypeResolverContext::InExpression,
|
||||
/*unboundTyOpener*/ nullptr,
|
||||
/*placeholderHandler*/ nullptr),
|
||||
/*isSpecialized=*/false);
|
||||
/*placeholderHandler*/ nullptr)
|
||||
.resolveTypeInContext(typeDecl, /*foundDC*/ nullptr,
|
||||
/*isSpecialized=*/false);
|
||||
|
||||
checkNestedTypeConstraints(*this, type, locator);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user