Updated packages and fixed analyzer rules in SG project

このコミットが含まれているのは:
Sergio Pedri committed 2021-03-12 12:47:47 +01:00
1 親 3fe8a6addc
コミット 861da7eb77
6ファイル変更
+64 -58

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

+1 -1
ファイルの表示
@@ -256,7 +256,7 @@ namespace ComputeSharp.SourceGenerators.SyntaxRewriters
// If the member access is a constant, track it and replace the tree with the processed constant name
if (operation is IFieldReferenceOperation fieldOperation &&
fieldOperation.Field.IsConst &&
fieldOperation.Type.TypeKind != TypeKind.Enum)
fieldOperation.Type!.TypeKind != TypeKind.Enum)
{
ConstantDefinitions[fieldOperation.Field] = ((IFormattable)fieldOperation.Field.ConstantValue!).ToString(null, CultureInfo.InvariantCulture);