8 references to Distinct
Microsoft.CodeAnalysis.Workspaces (8)
Rename\SymbolicRenameLocations.cs (1)
42Debug.Assert(locations.Distinct().Count() == locations.Length, "Locations should be unique");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigFile.cs (1)
23private 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)
67visitor.WriteLocationArray(locations.Distinct());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
36var filteredDiagnostics = diagnostics.Distinct()
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (3)
503var distinctProjectsForOutputPath = projectsForOutputPath.Distinct().ToList(); 696if (projectUpdateState.ProjectsByOutputPath.TryGetValue(path, out var ids) && ids.Distinct().Count() == 1) 787var distinctRemainingProjects = remainingProjectsForOutputPath.Distinct();