mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-18 23:02:00 +00:00
[Ryujinx.Horizon.Kernel.Generators] Address dotnet-format issues (#5376)
* 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 * Simplify properties and array initialization, Use const when possible, Remove trailing commas * Revert "Simplify properties and array initialization, Use const when possible, Remove trailing commas" This reverts commit 9462e4136c0a2100dc28b20cf9542e06790aa67e. * dotnet format whitespace after rebase * Run dotnet format pass * Remove left-over files and adjust namespaces * Fix alignment
This commit is contained in:
parent
fbaf62c230
commit
e055217292
3 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Ryujinx.Horizon.Generators
|
namespace Ryujinx.Horizon.Kernel.Generators
|
||||||
{
|
{
|
||||||
class CodeGenerator
|
class CodeGenerator
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@ using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace Ryujinx.Horizon.Generators.Kernel
|
namespace Ryujinx.Horizon.Kernel.Generators
|
||||||
{
|
{
|
||||||
[Generator]
|
[Generator]
|
||||||
class SyscallGenerator : ISourceGenerator
|
class SyscallGenerator : ISourceGenerator
|
||||||
|
@ -157,10 +157,10 @@ namespace Ryujinx.Horizon.Generators.Kernel
|
||||||
GetCanonicalTypeName(context.Compilation, attribute) == TypeSvcAttribute)))
|
GetCanonicalTypeName(context.Compilation, attribute) == TypeSvcAttribute)))
|
||||||
{
|
{
|
||||||
syscalls.AddRange(from attributeArg in attribute.ArgumentList.Arguments
|
syscalls.AddRange(from attributeArg in attribute.ArgumentList.Arguments
|
||||||
where attributeArg.Expression.Kind() == SyntaxKind.NumericLiteralExpression
|
where attributeArg.Expression.Kind() == SyntaxKind.NumericLiteralExpression
|
||||||
select (LiteralExpressionSyntax)attributeArg.Expression
|
select (LiteralExpressionSyntax)attributeArg.Expression
|
||||||
into numericLiteral
|
into numericLiteral
|
||||||
select new SyscallIdAndName((int)numericLiteral.Token.Value, method.Identifier.Text));
|
select new SyscallIdAndName((int)numericLiteral.Token.Value, method.Identifier.Text));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace Ryujinx.Horizon.Generators.Kernel
|
namespace Ryujinx.Horizon.Kernel.Generators
|
||||||
{
|
{
|
||||||
class SyscallSyntaxReceiver : ISyntaxReceiver
|
class SyscallSyntaxReceiver : ISyntaxReceiver
|
||||||
{
|
{
|
Loading…
Reference in a new issue