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:
@@ -1848,8 +1848,8 @@ static void maybeAddAccessorsToBehaviorStorage(TypeChecker &TC, VarDecl *var) {
|
||||
};
|
||||
|
||||
// Try to resolve the behavior to a protocol.
|
||||
auto behaviorType = TC.resolveType(behavior->ProtocolName,
|
||||
TypeResolution::forContextual(dc), None);
|
||||
auto resolution = TypeResolution::forContextual(dc);
|
||||
auto behaviorType = resolution.resolveType(behavior->ProtocolName, None);
|
||||
if (!behaviorType) {
|
||||
return makeBehaviorAccessors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user