mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Use dedicated API to get generated syntax trees
This commit is contained in:
@@ -169,9 +169,7 @@ namespace Semmle.Extraction.CSharp
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user