Skip to content

Commit

Permalink
.NET: Speed up generation
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jun 15, 2024
1 parent 50cd000 commit 8e6f3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csharp-api/AssemblyGenerator/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ public class AssemblyGenerator {
var syntaxTreeParseOption = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp12);

foreach (var cu in compilationUnits) {
syntaxTrees.Add(SyntaxFactory.SyntaxTree(cu.NormalizeWhitespace(), syntaxTreeParseOption));
syntaxTrees.Add(SyntaxFactory.SyntaxTree(cu, syntaxTreeParseOption));
}

string? assemblyPath = Path.GetDirectoryName(typeof(object).Assembly.Location);
Expand Down

0 comments on commit 8e6f3aa

Please sign in to comment.