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 27, 2024
1 parent 0b41d51 commit 1e2d1ef
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,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 1e2d1ef

Please sign in to comment.