Skip to content

Commit

Permalink
Use dedicated API to get generated syntax trees
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasvajk committed Jun 26, 2024
1 parent e7c8683 commit 24089f6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,7 @@ static bool filter(CompilerCall compilerCall)
}

var args = reader.ReadCommandLineArguments(compilerCall);

// Generated syntax trees are always added to the end of the list of syntax trees.
var generatedSyntaxTrees = compilation.SyntaxTrees.Skip(compilationData.Compilation.SyntaxTrees.Count());
var generatedSyntaxTrees = compilationData.GetGeneratedSyntaxTrees();

using var analyser = new BinaryLogAnalyser(new LogProgressMonitor(logger), logger, pathTransformer, canonicalPathCache, options.AssemblySensitiveTrap);

Expand Down

0 comments on commit 24089f6

Please sign in to comment.