Skip to content

Commit 5a41b2c

Browse files
committed
C#: Order syntax trees before creating compilation
1 parent d689ab0 commit 5a41b2c

File tree

1 file changed

+2
-0
lines changed
  • csharp/extractor/Semmle.Extraction.CSharp/Extractor

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ public static ExitCode Analyse(Stopwatch stopwatch, Analyser analyser, CommonOpt
435435
}
436436
}
437437

438+
syntaxTrees.Sort((a, b) => string.Compare(a.FilePath, b.FilePath, StringComparison.Ordinal));
439+
438440
var compilation = getCompilation(syntaxTrees, references);
439441

440442
initializeAnalyser(compilation, options);

0 commit comments

Comments
 (0)