Browse Source

Remove duplicates in analyzer results.

pull/1030/head
Siegfried Pammer 7 years ago
parent
commit
4b61bf38af
  1. 3
      ILSpy/Analyzers/AnalyzerSearchTreeNode.cs

3
ILSpy/Analyzers/AnalyzerSearchTreeNode.cs

@ -18,6 +18,7 @@ @@ -18,6 +18,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.ILSpy.Analyzers.TreeNodes;
@ -61,7 +62,7 @@ namespace ICSharpCode.ILSpy.Analyzers @@ -61,7 +62,7 @@ namespace ICSharpCode.ILSpy.Analyzers
yield return EntityTreeNodeFactory(result);
}
} else {
foreach (var result in new ScopedWhereUsedAnalyzer<T>(Language, analyzedEntity, analyzer).PerformAnalysis(ct)) {
foreach (var result in new ScopedWhereUsedAnalyzer<T>(Language, analyzedEntity, analyzer).PerformAnalysis(ct).Distinct()) {
yield return EntityTreeNodeFactory(result);
}
}

Loading…
Cancel
Save