Remove some null suppressions, add [NotNullWhen]
このコミットが含まれているのは:
1 親
94002a662b
コミット
aad8dd8d95
10ファイル変更
+17
-17
検索条件に一致するファイルはありません
@@ -85,12 +85,12 @@ partial class D2DPixelShaderSourceGenerator
|
||||
{
|
||||
if (methodSymbol.TryGetAttributeWithFullyQualifiedMetadataName("ComputeSharp.D2D1.D2DShaderProfileAttribute", out AttributeData? attributeData))
|
||||
{
|
||||
return (D2D1ShaderProfile)attributeData!.ConstructorArguments[0].Value!;
|
||||
return (D2D1ShaderProfile)attributeData.ConstructorArguments[0].Value!;
|
||||
}
|
||||
|
||||
if (methodSymbol.ContainingAssembly.TryGetAttributeWithFullyQualifiedMetadataName("ComputeSharp.D2D1.D2DShaderProfileAttribute", out attributeData))
|
||||
{
|
||||
return (D2D1ShaderProfile)attributeData!.ConstructorArguments[0].Value!;
|
||||
return (D2D1ShaderProfile)attributeData.ConstructorArguments[0].Value!;
|
||||
}
|
||||
|
||||
diagnostics.Add(
|
||||
@@ -112,12 +112,12 @@ partial class D2DPixelShaderSourceGenerator
|
||||
{
|
||||
if (methodSymbol.TryGetAttributeWithFullyQualifiedMetadataName("ComputeSharp.D2D1.D2DCompileOptionsAttribute", out AttributeData? attributeData))
|
||||
{
|
||||
return (D2D1CompileOptions)attributeData!.ConstructorArguments[0].Value!;
|
||||
return (D2D1CompileOptions)attributeData.ConstructorArguments[0].Value!;
|
||||
}
|
||||
|
||||
if (methodSymbol.ContainingAssembly.TryGetAttributeWithFullyQualifiedMetadataName("ComputeSharp.D2D1.D2DCompileOptionsAttribute", out attributeData))
|
||||
{
|
||||
return (D2D1CompileOptions)attributeData!.ConstructorArguments[0].Value!;
|
||||
return (D2D1CompileOptions)attributeData.ConstructorArguments[0].Value!;
|
||||
}
|
||||
|
||||
diagnostics.Add(
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする