Minor code refactorings

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-29 16:03:31 +02:00
1 親 c14dd305ae
コミット b24e6b4c0d
27ファイル変更
+131 -121

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

+1 -1
ファイルの表示
@@ -78,7 +78,7 @@ public sealed class AutoConstructorGenerator : IIncrementalGenerator
}
// Check whether the field is annotated to have a special behavior
if (fieldSymbol.Type.TryGetAttributeWithFullMetadataName("ComputeSharp.AutoConstructorBehaviorAttribute", out AttributeData? usageData) &&
if (fieldSymbol.Type.TryGetAttributeWithFullyQualifiedMetadataName("ComputeSharp.AutoConstructorBehaviorAttribute", out AttributeData? usageData) &&
usageData!.ConstructorArguments is { Length: 1 } arguments &&
arguments[0].Value is (int)AutoConstructorBehavior.IgnoreAndSetToDefault)
{