Skip to content

Commit 6c8e391

Browse files
committed
C#: Make sure no file is added twice to the compilation
1 parent 5170585 commit 6c8e391

File tree

2 files changed

+1
-2
lines changed
  • csharp

2 files changed

+1
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ private static ExitCode AnalyseTracing(
398398
}
399399

400400
return ReadSyntaxTrees(
401-
paths.Select(analyser.PathCache.GetCanonicalPath),
401+
paths.Select(analyser.PathCache.GetCanonicalPath).ToHashSet(),
402402
analyser,
403403
compilerArguments.ParseOptions,
404404
compilerArguments.Encoding,
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
| Generated/x.cs:2:7:2:7 | CS0101: The namespace '<global namespace>' already contains a definition for 'X' |

0 commit comments

Comments
 (0)