8 references to Distinct
Microsoft.CodeAnalysis.Workspaces (8)
Rename\SymbolicRenameLocations.cs (1)
42
Debug.Assert(locations.
Distinct
().Count() == locations.Length, "Locations should be unique");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigFile.cs (1)
23
private readonly Lazy<ImmutableArray<Section>> _sections = new(() => Options.SelectAsArray(x => x.Section).
Distinct
());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (1)
16
=> GetAllSymbolsWorker(info).
Distinct
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
67
visitor.WriteLocationArray(locations.
Distinct
());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
36
var filteredDiagnostics = diagnostics.
Distinct
()
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (3)
506
var distinctProjectsForOutputPath = projectsForOutputPath.
Distinct
().ToList();
700
if (projectUpdateState.ProjectsByOutputPath.TryGetValue(path, out var ids) && ids.
Distinct
().Count() == 1)
791
var distinctRemainingProjects = remainingProjectsForOutputPath.
Distinct
();