Run dotnet format whitespace

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-15 09:10:18 -07:00
1 親 228d7d8b7a
コミット e94636b80c
896ファイル変更
+1511 -1511

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis;
namespace ComputeSharp.SourceGeneration.Diagnostics;
@@ -7,4 +7,4 @@ namespace ComputeSharp.SourceGeneration.Diagnostics;
/// </summary>
internal static partial class DiagnosticDescriptors
{
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Buffers;
namespace ComputeSharp.SourceGeneration.Extensions;
@@ -66,4 +66,4 @@ internal static class StringExtensions
return text;
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using ComputeSharp.SourceGeneration.Mappings;
using Microsoft.CodeAnalysis;
@@ -229,4 +229,4 @@ internal static class SyntaxNodeExtensions
_ => true
}).ToArray()));
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using Microsoft.CodeAnalysis;
namespace ComputeSharp.SourceGeneration.Helpers;
@@ -44,4 +44,4 @@ internal sealed class SemanticModelProvider
return semanticModel;
}
}
}
+3 -3
ファイルの表示
@@ -1,4 +1,4 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
@@ -24,7 +24,7 @@ internal static class SyntaxTokenHelper
// so would otherwise case the terminating """ token to fall on the same line, which is invalid syntax. This is only
// needed to make the code valid, as the actual literal context of the string is not affected and remains the same.
string indentation = new(' ', 4 * indentationLevel + 4 + 4);
return Token(
TriviaList(),
SyntaxKind.MultiLineRawStringLiteralToken,
@@ -32,4 +32,4 @@ internal static class SyntaxTokenHelper
text,
TriviaList());
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace ComputeSharp.SourceGeneration.Mappings;
@@ -41,4 +41,4 @@ internal static partial class HlslKnownFields
{
return KnownFields.TryGetValue(name, out mapped);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using ComputeSharp.Core.Intrinsics.Attributes;
@@ -85,4 +85,4 @@ internal static partial class HlslKnownKeywords
return mapped is not null;
}
}
}
+1 -1
ファイルの表示
@@ -262,4 +262,4 @@ internal static partial class HlslKnownMethods
{
return KnownMethodsParametersMapping[$"{name}({string.Join(", ", parameterTypeNames)})"];
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
@@ -57,4 +57,4 @@ internal static partial class HlslKnownOperators
{
return KnownOperators.TryGetValue($"{name}({string.Join(", ", parameterTypeNames)})", out mapped);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
@@ -293,4 +293,4 @@ internal static partial class HlslKnownProperties
return false;
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Reflection;
@@ -55,4 +55,4 @@ internal static class HlslKnownSizes
{
return KnownSizes[typeName];
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
@@ -330,4 +330,4 @@ internal static partial class HlslKnownTypes
else queue.Enqueue(entry);
}
}
}
}
@@ -1,4 +1,4 @@
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Extensions;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static ComputeSharp.SourceGeneration.Diagnostics.DiagnosticDescriptors;
@@ -201,4 +201,4 @@ partial class HlslSourceRewriter
return base.VisitUnsafeStatement(node);
}
}
}
+4 -4
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
@@ -322,7 +322,7 @@ internal abstract partial class HlslSourceRewriter : CSharpSyntaxRewriter
public override SyntaxNode? VisitBinaryExpression(BinaryExpressionSyntax node)
{
var updatedNode = (BinaryExpressionSyntax)base.VisitBinaryExpression(node)!;
// Process binary operations to see if the target operator method is an intrinsic
if (SemanticModel.For(node).GetOperation(node) is IBinaryOperation { OperatorMethod: { ContainingType.ContainingNamespace.Name: "ComputeSharp" } method })
{
@@ -339,7 +339,7 @@ internal abstract partial class HlslSourceRewriter : CSharpSyntaxRewriter
Argument(updatedNode.Right));
}
}
return updatedNode;
}
@@ -377,4 +377,4 @@ internal abstract partial class HlslSourceRewriter : CSharpSyntaxRewriter
return updatedToken.WithoutTrivia();
}
}
}
+3 -3
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
@@ -312,7 +312,7 @@ internal sealed partial class ShaderSourceRewriter : HlslSourceRewriter
public override SyntaxNode VisitMemberAccessExpression(MemberAccessExpressionSyntax node)
{
var updatedNode = (MemberAccessExpressionSyntax)base.VisitMemberAccessExpression(node)!;
if (node.IsKind(SyntaxKind.SimpleMemberAccessExpression) &&
SemanticModel.For(node).GetOperation(node) is IMemberReferenceOperation operation)
{
@@ -584,4 +584,4 @@ internal sealed partial class ShaderSourceRewriter : HlslSourceRewriter
/// </summary>
/// <param name="metadataName">The metadata name of the method being invoked.</param>
private partial void TrackKnownMethodInvocation(string metadataName);
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
@@ -135,4 +135,4 @@ internal sealed partial class StaticFieldRewriter : HlslSourceRewriter
/// </summary>
/// <param name="metadataName">The metadata name of the method being invoked.</param>
private partial void TrackKnownMethodInvocation(string metadataName);
}
}