Skip to content

Commit 1e2d1ef

Browse files
committed
Use dedicated API to get generated syntax trees
1 parent 0b41d51 commit 1e2d1ef

File tree

1 file changed

+1
-3
lines changed
  • csharp/extractor/Semmle.Extraction.CSharp/Extractor

1 file changed

+1
-3
lines changed

csharp/extractor/Semmle.Extraction.CSharp/Extractor/Extractor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ static bool filter(CompilerCall compilerCall)
169169
}
170170

171171
var args = reader.ReadCommandLineArguments(compilerCall);
172-
173-
// Generated syntax trees are always added to the end of the list of syntax trees.
174-
var generatedSyntaxTrees = compilation.SyntaxTrees.Skip(compilationData.Compilation.SyntaxTrees.Count());
172+
var generatedSyntaxTrees = compilationData.GetGeneratedSyntaxTrees();
175173

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

0 commit comments

Comments
 (0)