mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-19 07:36:30 +02:00
misc: chore: Use collection expressions in Generator projects
This commit is contained in:
parent
45125c16cf
commit
2853f5b426
8 changed files with 27 additions and 27 deletions
|
@ -11,7 +11,7 @@ namespace Ryujinx.Horizon.Generators.Hipc
|
|||
public CommandInterface(ClassDeclarationSyntax classDeclarationSyntax)
|
||||
{
|
||||
ClassDeclarationSyntax = classDeclarationSyntax;
|
||||
CommandImplementations = new List<MethodDeclarationSyntax>();
|
||||
CommandImplementations = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Ryujinx.Horizon.Generators.Hipc
|
|||
|
||||
public HipcSyntaxReceiver()
|
||||
{
|
||||
CommandInterfaces = new List<CommandInterface>();
|
||||
CommandInterfaces = [];
|
||||
}
|
||||
|
||||
public void OnVisitSyntaxNode(SyntaxNode syntaxNode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue