Use GetText instead of ToFullString

このコミットが含まれているのは:
Simona Koníčková authored and Sergio Pedri committed 2022-05-28 03:14:22 +02:00
1 親 b7770934dc
コミット 1465b5fd9d
6ファイル変更
+34 -24

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

+2 -1
ファイルの表示
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
using ComputeSharp.Core.SourceGenerators.Models;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Models;
@@ -41,7 +42,7 @@ public sealed partial class AutoConstructorGenerator : IIncrementalGenerator
{
CompilationUnitSyntax compilationUnit = Ctor.GetSyntax(item.Left, item.Right);
context.AddSource($"{item.Left.FilenameHint}.Ctor", compilationUnit.ToFullString());
context.AddSource($"{item.Left.FilenameHint}.Ctor", compilationUnit.GetText(Encoding.UTF8));
});
}