mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
rename default initializer's ActorSystem parameter name to actorSystem
Konrad, myself, and others feel the longer name would be better, rather than just "system"
This commit is contained in:
@@ -302,8 +302,8 @@ static ConstructorDecl *createImplicitConstructor(NominalTypeDecl *decl,
|
||||
accessLevel = decl->getEffectiveAccess();
|
||||
auto systemTy = getDistributedActorSystemType(classDecl);
|
||||
|
||||
// Create the parameter.
|
||||
auto *arg = new (ctx) ParamDecl(SourceLoc(), Loc, ctx.Id_system, Loc,
|
||||
// Create the parameter. API name is actorSystem, local name is system
|
||||
auto *arg = new (ctx) ParamDecl(SourceLoc(), Loc, ctx.Id_actorSystem, Loc,
|
||||
ctx.Id_system, decl);
|
||||
arg->setSpecifier(ParamSpecifier::Default);
|
||||
arg->setInterfaceType(systemTy);
|
||||
|
||||
Reference in New Issue
Block a user