Updated packages and fixed analyzer rules in SG project
このコミットが含まれているのは:
1 親
3fe8a6addc
コミット
861da7eb77
6ファイル変更
+64
-58
検索条件に一致するファイルはありません
@@ -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);
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする