misc: chore: Use collection expressions (part 2)

This commit is contained in:
KeatonTheBot committed 2025-03-10 21:32:01 -05:00
1 parent c923c0043a
commit 340ec79e9f
176 files changed
+308 -308

No files matched your search

@@ -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>();
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)