misc: chore: Use collection expressions in Generator projects

This commit is contained in:
Evan Husted 2025-01-26 15:45:43 -06:00
parent 45125c16cf
commit 2853f5b426
8 changed files with 27 additions and 27 deletions

View file

@ -11,7 +11,7 @@ namespace Ryujinx.Horizon.Generators.Hipc
public CommandInterface(ClassDeclarationSyntax classDeclarationSyntax)
{
ClassDeclarationSyntax = classDeclarationSyntax;
CommandImplementations = new List<MethodDeclarationSyntax>();
CommandImplementations = [];
}
}
}

View file

@ -257,7 +257,7 @@ namespace Ryujinx.Horizon.Generators.Hipc
generator.AppendLine();
}
List<OutParameter> outParameters = new();
List<OutParameter> outParameters = [];
string[] args = new string[method.ParameterList.Parameters.Count];

View file

@ -12,7 +12,7 @@ namespace Ryujinx.Horizon.Generators.Hipc
public HipcSyntaxReceiver()
{
CommandInterfaces = new List<CommandInterface>();
CommandInterfaces = [];
}
public void OnVisitSyntaxNode(SyntaxNode syntaxNode)