Minor code tweaks
このコミットが含まれているのは:
1 親
c7583eb3c7
コミット
ff04ee384c
3ファイル変更
+1
-10
検索条件に一致するファイルはありません
-4
@@ -1,7 +1,3 @@
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System.Collections.Immutable;
|
||||
using ComputeSharp.SourceGeneration.Extensions;
|
||||
using Microsoft.CodeAnalysis;
|
||||
|
||||
-4
@@ -1,7 +1,3 @@
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
using ComputeSharp.SourceGeneration.Extensions;
|
||||
|
||||
+1
-2
@@ -48,8 +48,7 @@ public sealed class D2D1ResourceTextureUninitializedFieldDiagnosticSuppressor :
|
||||
ISymbol? declaredSymbol = semanticModel.GetDeclaredSymbol(syntaxNode, context.CancellationToken);
|
||||
|
||||
// Check if the field is in a struct and it's of a D2D1 resource texture type
|
||||
if (declaredSymbol is IFieldSymbol fieldSymbol &&
|
||||
fieldSymbol.ContainingType is { TypeKind: TypeKind.Struct } structSymbol &&
|
||||
if (declaredSymbol is IFieldSymbol { ContainingType: { TypeKind: TypeKind.Struct } structSymbol } fieldSymbol &&
|
||||
HlslKnownTypes.IsResourceTextureType(fieldSymbol.Type.GetFullMetadataName()))
|
||||
{
|
||||
// Get the ID2D1PixelShader interface symbol to the check the containing type of the field
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする