Fixed handling of constants in parent type hierarchy
このコミットが含まれているのは:
1 親
27438f7a69
コミット
ad58397e1d
3ファイル変更
+21
-20
検索条件に一致するファイルはありません
@@ -473,6 +473,11 @@ namespace ComputeSharp.SourceGenerators.SyntaxRewriters
|
||||
!this.constantDefinitions.ContainsKey(operation.Field))
|
||||
{
|
||||
this.constantDefinitions.Add(operation.Field, operation.Field.ConstantValue!.ToString());
|
||||
|
||||
var ownerTypeName = ((INamedTypeSymbol)operation.Field.ContainingSymbol).ToDisplayString().Replace(".", "__");
|
||||
var constantName = $"__{ownerTypeName}__{operation.Field.Name}";
|
||||
|
||||
return IdentifierName(constantName);
|
||||
}
|
||||
|
||||
return updatedNode;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする