70 references to ToImmutableHashSet
BuildActionTelemetryTable (1)
Program.cs (1)
34}.ToImmutableHashSet();
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
RequestDelegateGenerator.cs (1)
167.ToImmutableHashSet();
Microsoft.Build (3)
Definition\Project.cs (1)
2637excludeFragmentStrings = excludeItemspec.FlattenFragmentsAsStrings().ToImmutableHashSet();
Evaluation\LazyItemEvaluator.IncludeOperation.cs (2)
152return excludePatterns.Concat(globsToIgnore).ToImmutableHashSet(); 155return anyExcludes ? excludePatterns.ToImmutableHashSet() : globsToIgnore;
Microsoft.Build.Engine.OM.UnitTests (9)
Definition\Project_Tests.cs (9)
3655var expectedExcludes = new[] { "1", "*", "3" }.ToImmutableHashSet(); 3681("A", new []{"**"}, new [] {"e**"}.ToImmutableHashSet(), new [] {"c"}.ToImmutableHashSet()), 3682("A", new []{"*"}, new [] {"e*"}.ToImmutableHashSet(), new [] {"c", "b", "a"}.ToImmutableHashSet()), 3795var expectedExcludes = new[] { "1", "*", "3" }.ToImmutableHashSet(); 3821("A", new []{"*"}, new[] {"*"}.ToImmutableHashSet(), ImmutableHashSet<string>.Empty), 3849("C", new []{"**"}, new [] {"build.proj", "a", "b"}.ToImmutableHashSet(), new [] {"build.proj", "a", "b"}.ToImmutableHashSet()),
Microsoft.Build.Engine.UnitTests (1)
EvaluationProfiler_Tests.cs (1)
255var allUniqueIds = allIds.ToImmutableHashSet();
Microsoft.CodeAnalysis (8)
DiagnosticAnalyzer\AnalysisResult.cs (1)
91var excludedAnalyzersSet = excludedAnalyzers.Any() ? excludedAnalyzers.ToImmutableHashSet() : ImmutableHashSet<DiagnosticAnalyzer>.Empty;
DiagnosticAnalyzer\AnalysisResultBuilder.cs (1)
508var analyzersSet = analyzers.ToImmutableHashSet();
DiagnosticAnalyzer\AnalysisScope.cs (1)
179private ImmutableHashSet<DiagnosticAnalyzer> CreateAnalyzersSet() => Analyzers.ToImmutableHashSet();
DiagnosticAnalyzer\AnalyzerDriver.cs (3)
898var analyzersSuppressedForSomeTree = SuppressedAnalyzersForTreeMap.SelectMany(kvp => kvp.Value).ToImmutableHashSet(); 2044var unsuppressedAnalyzers = unsuppressedAnalyzersBuilder.ToImmutableHashSet(); 2986Debug.Assert(operationsToAnalyze.ToImmutableHashSet().Count == operationsToAnalyze.Count);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
376var suppressorsInAnalysisScope = analysisScope.Analyzers.OfType<DiagnosticSuppressor>().ToImmutableHashSet();
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
63/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource})"/>
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
65return supportedCodes?.ToImmutableHashSet() ?? []; 182var idsToAnalyze = idsToAnalyzeBuilder.ToImmutableHashSet();
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
63/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource})"/>
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (1)
91var projects = solution.Projects.ToImmutableHashSet();
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedHashSet.cs (1)
63/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource})"/>
Microsoft.CodeAnalysis.CSharp (3)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
693_lazyCallingConventionModifiers = builder.ToImmutableHashSet();
Symbols\MethodSymbol.cs (1)
1025callingConventionTypes = builder.ToImmutableHashSet();
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
249data = UnmanagedCallersOnlyAttributeData.Create(builder.ToImmutableHashSet());
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
300var currentParameterNames = baseMethod.ParameterList.Parameters.Select(p => p.Identifier.ValueText).ToImmutableHashSet();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeActions\CodeChangeProviderMetadataTests.cs (2)
124.ToImmutableHashSet(); 157.ToImmutableHashSet();
Microsoft.CodeAnalysis.Features (4)
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (1)
41.ToImmutableHashSet();
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
65return supportedCodes?.ToImmutableHashSet() ?? [];
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (1)
91var projects = solution.Projects.ToImmutableHashSet();
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
51.ToImmutableHashSet();
Microsoft.CodeAnalysis.Features.UnitTests (10)
EditAndContinue\EmitSolutionUpdateResultsTests.cs (6)
168var runningProjects = new[] { a, b }.ToImmutableHashSet(); 194var runningProjects = new[] { a, b }.ToImmutableHashSet(); 223var runningProjects = new[] { a }.ToImmutableHashSet(); 249var runningProjects = new[] { a, b }.ToImmutableHashSet(); 279var runningProjects = new[] { a, b }.ToImmutableHashSet(); 313var runningProjects = new[] { r1, r2, r3, r4 }.ToImmutableHashSet();
EditAndContinue\WatchHotReloadServiceTests.cs (4)
85result = await hotReload.GetUpdatesAsync(solution, runningProjects: solution.ProjectIds.ToImmutableHashSet(), CancellationToken.None); 96result = await hotReload.GetUpdatesAsync(solution, runningProjects: solution.ProjectIds.ToImmutableHashSet(), CancellationToken.None); 107result = await hotReload.GetUpdatesAsync(solution, runningProjects: solution.ProjectIds.ToImmutableHashSet(), CancellationToken.None); 165var result = await hotReload.GetUpdatesAsync(solution, runningProjects: solution.ProjectIds.ToImmutableHashSet(), CancellationToken.None);
Microsoft.CodeAnalysis.LanguageServer (1)
BrokeredServices\BrokeredServiceBridgeProvider.cs (1)
72using (container.ProfferRemoteBroker(remoteClient, bridgeMxStream, ServiceSource.OtherProcessOnSameMachine, Descriptors.RemoteServicesToRegister.Keys.ToImmutableHashSet()))
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Services\NavigateToSearch\RemoteNavigateToSearchService.cs (4)
61document, searchPattern, kinds.ToImmutableHashSet(), onItemsFound, cancellationToken).ConfigureAwait(false); 82projects, priorityDocuments, searchPattern, kinds.ToImmutableHashSet(), onItemsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false); 100projects, searchPattern, kinds.ToImmutableHashSet(), onItemsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false); 120storageService, documentKeys, priorityDocumentKeys, searchPattern, kinds.ToImmutableHashSet(), onItemsFound, onProjectCompleted, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1132_symbolNames = symbolNames.ToImmutableHashSet();
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryImports\VisualBasicRemoveUnnecessaryImportsDiagnosticAnalyzer.vb (1)
38Dim importsClauses = unnecessaryImports.ToImmutableHashSet()
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryImports\VisualBasicRemoveUnnecessaryImportsDiagnosticAnalyzer.vb (1)
38Dim importsClauses = unnecessaryImports.ToImmutableHashSet()
Microsoft.CodeAnalysis.Workspaces (6)
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
413solution, [type], solution.Projects.ToImmutableHashSet(), cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
60var projectsToSearch = documents.Select(d => d.Project).Where(p => p.SupportsCompilation).ToImmutableHashSet();
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
725return (documentIds.ToImmutableHashSet(), possibleNameConflicts); 814.ToImmutableHashSet();
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
63/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource})"/>
Workspace\Solution\ProjectDependencyGraph.cs (1)
158.ToImmutableHashSet();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
63/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource})"/>
Microsoft.DotNet.XUnitAssert.Tests (2)
SetAssertsTests.cs (2)
56 assertFailure(() => Assert.Contains("FORTY-two", set.ToImmutableHashSet())); 76 Assert.DoesNotContain("FORTY-two", set.ToImmutableHashSet());
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Roslyn4.0.cs (1)
48ImmutableHashSet<ClassDeclarationSyntax> distinctClasses = classes.ToImmutableHashSet();
Microsoft.Gen.Logging (1)
LoggingGenerator.cs (1)
39ImmutableHashSet<TypeDeclarationSyntax> distinctTypes = types.ToImmutableHashSet();
Microsoft.VisualStudio.LanguageServices (3)
CommonControls\MemberSelectionViewModel.cs (1)
192return result.ToImmutableHashSet();
MoveStaticMembers\StaticMemberSelectionViewModel.cs (1)
106return result.ToImmutableHashSet();
PullMemberUp\SymbolDependentsBuilder.cs (1)
51_membersInType = membersInType.ToImmutableHashSet();