Remove unnecessary parentheses
このコミットが含まれているのは:
1 親
d910922ef5
コミット
8be9203a1c
18ファイル変更
+35
-36
検索条件に一致するファイルはありません
@@ -214,7 +214,7 @@ internal sealed partial class ShaderSourceRewriter : HlslSourceRewriter
|
||||
/// <inheritdoc/>
|
||||
public override SyntaxNode VisitLocalDeclarationStatement(LocalDeclarationStatementSyntax node)
|
||||
{
|
||||
LocalDeclarationStatementSyntax updatedNode = ((LocalDeclarationStatementSyntax)base.VisitLocalDeclarationStatement(node)!);
|
||||
LocalDeclarationStatementSyntax updatedNode = (LocalDeclarationStatementSyntax)base.VisitLocalDeclarationStatement(node)!;
|
||||
|
||||
if (SemanticModel.For(node).GetOperation(node) is IOperation { Kind: OperationKind.UsingDeclaration })
|
||||
{
|
||||
|
||||
+3
-3
@@ -63,7 +63,7 @@ public sealed class InvalidComputeContextCopyAnalyzer : DiagnosticAnalyzer
|
||||
{
|
||||
// In the absence of data flow analysis we can treat
|
||||
// return of a local variable or a parameter as a "move"
|
||||
if (operation.ReturnedValue.Kind is (OperationKind.LocalReference or OperationKind.ParameterReference) &&
|
||||
if (operation.ReturnedValue.Kind is OperationKind.LocalReference or OperationKind.ParameterReference &&
|
||||
operation.Kind == OperationKind.Return)
|
||||
{
|
||||
ISymbol? varScope = operation.ReturnedValue.Kind switch
|
||||
@@ -355,7 +355,7 @@ public sealed class InvalidComputeContextCopyAnalyzer : DiagnosticAnalyzer
|
||||
}
|
||||
|
||||
return
|
||||
kind is (OperationKind.ObjectCreation or OperationKind.DefaultValue or OperationKind.Literal or OperationKind.Invocation) ||
|
||||
(kind is (OperationKind.None or OperationKind.Invalid) && operation.Syntax is InvocationExpressionSyntax); // Workaround for https://github.com/dotnet/roslyn/issues/49751
|
||||
kind is OperationKind.ObjectCreation or OperationKind.DefaultValue or OperationKind.Literal or OperationKind.Invocation ||
|
||||
(kind is OperationKind.None or OperationKind.Invalid && operation.Syntax is InvocationExpressionSyntax); // Workaround for https://github.com/dotnet/roslyn/issues/49751
|
||||
}
|
||||
}
|
||||
@@ -396,8 +396,8 @@ internal sealed unsafe partial class SwapChainManager<TOwner> : NativeObject
|
||||
|
||||
// Apply the necessary scale transform
|
||||
DXGI_MATRIX_3X2_F transformMatrix = default;
|
||||
transformMatrix._11 = (1 / this.compositionScaleX) * (1 / targetResolutionScale);
|
||||
transformMatrix._22 = (1 / this.compositionScaleY) * (1 / targetResolutionScale);
|
||||
transformMatrix._11 = 1 / this.compositionScaleX * (1 / targetResolutionScale);
|
||||
transformMatrix._22 = 1 / this.compositionScaleY * (1 / targetResolutionScale);
|
||||
|
||||
this.dxgiSwapChain3.Get()->SetMatrixTransform(&transformMatrix).Assert();
|
||||
|
||||
|
||||
@@ -217,10 +217,7 @@ partial class NativeObject
|
||||
|
||||
this.nativeObject = null;
|
||||
|
||||
if (nativeObject is not null)
|
||||
{
|
||||
nativeObject.ReturnReferenceTrackingLease();
|
||||
}
|
||||
nativeObject?.ReturnReferenceTrackingLease();
|
||||
}
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする