mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Type checker] Move TypeChecker::resolveType() into TypeResolution.
Now that type resolution is (almost completely) separated from the type checker instance, move resolveType() out to TypeResolution where it belongs.
This commit is contained in:
@@ -1420,8 +1420,8 @@ namespace {
|
||||
Type resolveTypeReferenceInExpression(TypeRepr *rep) {
|
||||
TypeResolutionOptions options(TypeResolverContext::InExpression);
|
||||
options |= TypeResolutionFlags::AllowUnboundGenerics;
|
||||
return CS.TC.resolveType(rep, TypeResolution::forContextual(CS.DC),
|
||||
options);
|
||||
return TypeResolution::forContextual(CS.DC).resolveType(rep,
|
||||
options);
|
||||
}
|
||||
|
||||
Type visitTypeExpr(TypeExpr *E) {
|
||||
|
||||
Reference in New Issue
Block a user