Match attributes by qualified name and not symbol
このコミットが含まれているのは:
1 親
2e160c5caa
コミット
2242f671ee
3ファイル変更
+19
-31
検索条件に一致するファイルはありません
@@ -119,7 +119,7 @@ public sealed partial class IShaderGenerator
|
||||
continue;
|
||||
}
|
||||
|
||||
AttributeData? attribute = fieldSymbol.GetAttributes().FirstOrDefault(static a => a.AttributeClass is { Name: nameof(GroupSharedAttribute) });
|
||||
AttributeData? attribute = fieldSymbol.GetAttributes().FirstOrDefault(static a => a.AttributeClass?.ToDisplayString() == typeof(GroupSharedAttribute).FullName);
|
||||
|
||||
// Group shared fields must be static
|
||||
if (attribute is not null)
|
||||
@@ -215,7 +215,7 @@ public sealed partial class IShaderGenerator
|
||||
continue;
|
||||
}
|
||||
|
||||
AttributeData? attribute = fieldSymbol.GetAttributes().FirstOrDefault(static a => a.AttributeClass is { Name: nameof(GroupSharedAttribute) });
|
||||
AttributeData? attribute = fieldSymbol.GetAttributes().FirstOrDefault(static a => a.AttributeClass?.ToDisplayString() == typeof(GroupSharedAttribute).FullName);
|
||||
|
||||
if (attribute is not null)
|
||||
{
|
||||
@@ -276,7 +276,7 @@ public sealed partial class IShaderGenerator
|
||||
continue;
|
||||
}
|
||||
|
||||
AttributeData? attribute = fieldSymbol.GetAttributes().FirstOrDefault(static a => a.AttributeClass is { Name: nameof(GroupSharedAttribute) });
|
||||
AttributeData? attribute = fieldSymbol.GetAttributes().FirstOrDefault(static a => a.AttributeClass?.ToDisplayString() == typeof(GroupSharedAttribute).FullName);
|
||||
|
||||
if (attribute is null)
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする