1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-23 21:46:00 +00:00

[Ryujinx.Horizon.Generators] Address dotnet-format issues (#5383)

* dotnet format style --severity info

Some changes were manually reverted.

* Address most dotnet format whitespace warnings

* Apply dotnet format whitespace formatting

A few of them have been manually reverted and the corresponding warning was silenced

* dotnet format whitespace after rebase
This commit is contained in:
TSRBerry 2023-06-26 07:35:19 +02:00 committed by GitHub
parent ff53dcf560
commit e96299eef5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -40,7 +40,7 @@ namespace Ryujinx.Horizon.Generators
{
if (_currentIndentCount - 1 >= 0)
{
_currentIndentCount--;
_currentIndentCount--;
}
}

View file

@ -39,7 +39,7 @@ namespace Ryujinx.Horizon.Generators.Hipc
In
}
private struct OutParameter
private readonly struct OutParameter
{
public readonly string Name;
public readonly string TypeName;
@ -341,7 +341,7 @@ namespace Ryujinx.Horizon.Generators.Hipc
generator.AppendLine($"using var {argName} = {value};");
string spanGenericTypeName = GetCanonicalTypeNameOfGenericArgument(compilation, parameter.Type, 0);
argName = GenerateSpanCast(spanGenericTypeName, $"{argName}.Memory.Span"); ;
argName = GenerateSpanCast(spanGenericTypeName, $"{argName}.Memory.Span");
}
else if (isNonSpanBuffer)
{
@ -604,7 +604,7 @@ namespace Ryujinx.Horizon.Generators.Hipc
return type;
}
private static bool IsArgument(Compilation compilation,ParameterSyntax parameter)
private static bool IsArgument(Compilation compilation, ParameterSyntax parameter)
{
return !IsBuffer(compilation, parameter) &&
!IsHandle(compilation, parameter) &&