@@ -171,7 +171,7 @@ static void emitActorSystemInit(SILGenFunction &SGF,
171171 // By construction, automatically generated distributed actor ctors have
172172 // exactly one ActorSystem-conforming argument to the constructor,
173173 // so we grab the first one from the params.
174- VarDecl *var = lookupDistributedActorProperty ( classDecl, C. Id_actorSystem );
174+ VarDecl *var = classDecl-> getDistributedActorSystemProperty ( );
175175 assert (var);
176176
177177 initializeProperty (SGF, loc, actorSelf.getValue (), var, systemValue);
@@ -204,7 +204,7 @@ void SILGenFunction::emitDistActorIdentityInit(ConstructorDecl *ctor,
204204
205205 // --- create a temporary storage for the result of the call
206206 // it will be deallocated automatically as we exit this scope
207- VarDecl *var = lookupDistributedActorProperty ( classDecl, C. Id_id );
207+ VarDecl *var = classDecl-> getDistributedActorIDProperty ( );
208208 auto resultTy = getLoweredType (F.mapTypeIntoContext (var->getInterfaceType ()));
209209 auto temp = emitTemporaryAllocation (loc, resultTy);
210210
@@ -317,7 +317,7 @@ void SILGenFunction::emitDistributedActorReady(
317317 ManagedValue actorSystem;
318318 SGFContext sgfCxt;
319319 {
320- VarDecl *property = lookupDistributedActorProperty ( classDecl, C. Id_actorSystem );
320+ VarDecl *property = classDecl-> getDistributedActorSystemProperty ( );
321321 Type formalType = F.mapTypeIntoContext (property->getInterfaceType ());
322322 SILType loweredType = getLoweredType (formalType).getAddressType ();
323323 SILValue actorSystemRef = emitActorPropertyReference (
@@ -451,11 +451,11 @@ void SILGenFunction::emitDistributedActorFactory(FuncDecl *fd) { // TODO(distrib
451451 auto classDecl = dc->getSelfClassDecl ();
452452
453453 initializeProperty (*this , loc, remote,
454- lookupDistributedActorProperty ( classDecl, C. Id_id ),
454+ classDecl-> getDistributedActorIDProperty ( ),
455455 idArg);
456456
457457 initializeProperty (*this , loc, remote,
458- lookupDistributedActorProperty ( classDecl, C. Id_actorSystem ),
458+ classDecl-> getDistributedActorSystemProperty ( ),
459459 actorSystemArg);
460460
461461 // ==== Branch to return the fully initialized remote instance
@@ -498,12 +498,12 @@ void SILGenFunction::emitDistributedActorSystemResignIDCall(
498498
499499 // ==== locate: self.id
500500 auto idRef = emitActorPropertyReference (
501- *this , loc, actorSelf.getValue (), lookupDistributedActorProperty ( actorDecl, ctx. Id_id ));
501+ *this , loc, actorSelf.getValue (), actorDecl-> getDistributedActorIDProperty ( ));
502502
503503 // ==== locate: self.actorSystem
504504 auto systemRef = emitActorPropertyReference (
505505 *this , loc, actorSelf.getValue (),
506- lookupDistributedActorProperty ( actorDecl, ctx. Id_actorSystem ));
506+ actorDecl-> getDistributedActorSystemProperty ( ));
507507
508508 // Perform the call.
509509 emitDistributedActorSystemWitnessCall (
0 commit comments