AST: Add ASTContext::TheSelfType for convenience

This commit is contained in:
Slava Pestov
2025-04-25 13:32:04 -04:00
parent 5d36643af4
commit cf1572c65b
13 changed files with 24 additions and 37 deletions

View File

@@ -1077,11 +1077,8 @@ GetDistributedActorAsActorConformanceRequest::evaluate(
if (!ext)
return nullptr;
auto genericParam = GenericTypeParamType::getType(/*depth=*/0, /*index=*/0,
ctx);
auto distributedActorAsActorConformance = ctx.getNormalConformance(
Type(genericParam), actorProto, SourceLoc(), ext,
Type(ctx.TheSelfType), actorProto, SourceLoc(), ext,
ProtocolConformanceState::Incomplete, ProtocolConformanceOptions());
// NOTE: Normally we "register" a conformance, but here we don't
// because we cannot (currently) register them in a protocol,