214 references to ImmutableHashSet
AnalyzerRunner (3)
CodeRefactoringRunner.cs (1)
136var kindBuilder = ImmutableHashSet.CreateBuilder<int>();
Options.cs (2)
120var builder = ImmutableHashSet.CreateBuilder<string>(); 121var refactoringBuilder = ImmutableHashSet.CreateBuilder<string>();
IdeCoreBenchmarks (1)
CSharpIdeAnalyzerBenchmarks.cs (1)
54analyzerIds: ImmutableHashSet.Create(AnalyzerName),
Microsoft.AspNetCore.Analyzers (1)
CompilationFeatureDetector.cs (1)
27var features = ImmutableHashSet.CreateBuilder<string>();
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
49public ImmutableHashSet<char> TriggerCharacters { get; } = ImmutableHashSet.Create(' ');
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
41public ImmutableHashSet<char> TriggerCharacters { get; } = ImmutableHashSet.Create(
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\Converters\CollectionAdapters\ImmutableHashSetBufferAdapter.cs (1)
10public static ImmutableHashSet<TElement>.Builder CreateBuffer() => ImmutableHashSet.CreateBuilder<TElement>();
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Binding\FormDataMapperTests.cs (2)
825var expected = ImmutableHashSet.CreateRange(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }); 865var expected = ImmutableHashSet.CreateRange(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableHashSetBufferAdapter.cs (1)
10public static ImmutableHashSet<TElement>.Builder CreateBuffer() => ImmutableHashSet.CreateBuilder<TElement>();
Microsoft.Build (3)
Construction\Solution\SolutionProjectGenerator.cs (1)
80internal static readonly ImmutableHashSet<string> _defaultTargetNames = ImmutableHashSet.Create(StringComparer.OrdinalIgnoreCase,
Definition\Project.cs (1)
2545_fragmentStrings = ImmutableHashSet.CreateBuilder<string>()
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
97var builder = ImmutableHashSet.CreateBuilder<string>();
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
3658("A", expectedIncludes, expectedExcludes, ImmutableHashSet.Create<string>())
Microsoft.CodeAnalysis (26)
CommandLine\AnalyzerConfig.cs (2)
72= ImmutableHashSet.CreateRange(Section.PropertiesKeyComparer, new[] { 88= ImmutableHashSet.CreateRange(CaseInsensitiveComparison.Comparer, new[] { "unset" });
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
144paths = ImmutableHashSet.Create(PathUtilities.Comparer, fullPath);
DiagnosticAnalyzer\AnalyzerDriver.cs (8)
533var builder = ImmutableHashSet.CreateBuilder<DiagnosticAnalyzer>(); 552var builder = ImmutableHashSet.CreateBuilder<DiagnosticAnalyzer>(); 951return ImmutableHashSet.Create(defaultSeverity); 972return ImmutableHashSet.Create(defaultSeverity); 975var builder = ImmutableHashSet.CreateBuilder<ReportDiagnostic>(); 1338generatedSymbolsBuilder ??= ImmutableHashSet.CreateBuilder<ISymbol>(); 1416suppressedAnalyzersBuilder ??= ImmutableHashSet.CreateBuilder<DiagnosticAnalyzer>(); 1499var builder = ImmutableHashSet.CreateBuilder<DiagnosticAnalyzer>();
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
244builder = ImmutableHashSet.CreateBuilder<string>();
InternalUtilities\MultiDictionary.cs (1)
164set = ImmutableHashSet.Create(_equalityComparer, (V)_value!);
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (13)
13/// <inheritdoc cref="ImmutableHashSet.Create{T}()"/> 17/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/> 21/// <inheritdoc cref="ImmutableHashSet.Create{T}(T[])"/> 25/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T})"/> 29/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T}?, T)"/> 33/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T}?, T[])"/> 37/// <inheritdoc cref="ImmutableHashSet.CreateBuilder{T}()"/> 41/// <inheritdoc cref="ImmutableHashSet.CreateBuilder{T}(IEqualityComparer{T}?)"/> 45/// <inheritdoc cref="ImmutableHashSet.CreateRange{T}(IEnumerable{T})"/> 54/// <inheritdoc cref="ImmutableHashSet.CreateRange{T}(IEqualityComparer{T}?, IEnumerable{T})"/> 63/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource})"/> 72/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource}, IEqualityComparer{TSource}?)"/> 81/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(ImmutableHashSet{TSource}.Builder)"/>
Microsoft.CodeAnalysis.CodeStyle (20)
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (1)
45var multipleLanguagesOptionsBuilder = ImmutableHashSet.CreateBuilder<IOption2>();
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
138_attributeSetForMethodsToIgnore = ImmutableHashSet.CreateRange<INamedTypeSymbol?>(GetAttributesForMethodsToIgnore(compilation));
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
51var attributeSetForMethodsToIgnore = ImmutableHashSet.CreateRange(GetAttributesForMethodsToIgnore(context.Compilation).WhereNotNull());
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
164set = ImmutableHashSet.Create(_equalityComparer, (V)_value!);
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (13)
13/// <inheritdoc cref="ImmutableHashSet.Create{T}()"/> 17/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/> 21/// <inheritdoc cref="ImmutableHashSet.Create{T}(T[])"/> 25/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T})"/> 29/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T}?, T)"/> 33/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T}?, T[])"/> 37/// <inheritdoc cref="ImmutableHashSet.CreateBuilder{T}()"/> 41/// <inheritdoc cref="ImmutableHashSet.CreateBuilder{T}(IEqualityComparer{T}?)"/> 45/// <inheritdoc cref="ImmutableHashSet.CreateRange{T}(IEnumerable{T})"/> 54/// <inheritdoc cref="ImmutableHashSet.CreateRange{T}(IEqualityComparer{T}?, IEnumerable{T})"/> 63/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource})"/> 72/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource}, IEqualityComparer{TSource}?)"/> 81/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(ImmutableHashSet{TSource}.Builder)"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
21= ImmutableHashSet.CreateRange(AnalyzerConfigOptions.KeyComparer, [ 33= ImmutableHashSet.CreateRange(CaseInsensitiveComparison.Comparer, ["unset"]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
114dictionary[key] = ImmutableHashSet.Create(comparer, value);
Microsoft.CodeAnalysis.Collections.Package (13)
ImmutableSegmentedHashSet.cs (13)
13/// <inheritdoc cref="ImmutableHashSet.Create{T}()"/> 17/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/> 21/// <inheritdoc cref="ImmutableHashSet.Create{T}(T[])"/> 25/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T})"/> 29/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T}?, T)"/> 33/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T}?, T[])"/> 37/// <inheritdoc cref="ImmutableHashSet.CreateBuilder{T}()"/> 41/// <inheritdoc cref="ImmutableHashSet.CreateBuilder{T}(IEqualityComparer{T}?)"/> 45/// <inheritdoc cref="ImmutableHashSet.CreateRange{T}(IEnumerable{T})"/> 54/// <inheritdoc cref="ImmutableHashSet.CreateRange{T}(IEqualityComparer{T}?, IEnumerable{T})"/> 63/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource})"/> 72/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource}, IEqualityComparer{TSource}?)"/> 81/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(ImmutableHashSet{TSource}.Builder)"/>
Microsoft.CodeAnalysis.CSharp (6)
Binder\BuckStopsHereBinder.cs (1)
254get { return ImmutableHashSet.Create<Symbol>(); }
BoundTree\BoundDecisionDag.cs (1)
52var result = ImmutableHashSet.CreateBuilder<LabelSymbol>(Symbols.SymbolEqualityComparer.ConsiderEverything);
Errors\ErrorFacts.cs (1)
26ImmutableHashSet<string>.Builder nullableWarnings = ImmutableHashSet.CreateBuilder<string>();
Lowering\ClosureConversion\ClosureConversion.cs (1)
192var allCapturedVars = ImmutableHashSet.CreateBuilder<Symbol>();
Symbols\TypeSymbol.cs (2)
2387var abstractMembers = ImmutableHashSet.Create<Symbol>(); 2388var overriddenMembers = ImmutableHashSet.Create<Symbol>();
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
137var builder = ImmutableHashSet.CreateBuilder<string>(StringComparer.Ordinal);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
50var documentImmutableSet = ImmutableHashSet.Create(document);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
SarifV2ErrorLoggerTests.cs (4)
377(AnalyzerForErrorLogTest.Descriptor1.Id, 0, ImmutableHashSet.Create(ReportDiagnostic.Error)))); 498(AnalyzerForErrorLogTest.Descriptor1.Id, 0, ImmutableHashSet.Create(ReportDiagnostic.Suppress)), 499(AnalyzerForErrorLogTest.Descriptor2.Id, 1, ImmutableHashSet.Create(ReportDiagnostic.Suppress)))); 580(AnalyzerForErrorLogTest.Descriptor1.Id, 0, ImmutableHashSet.Create(ReportDiagnostic.Suppress, ReportDiagnostic.Warn))));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
245.WithExcludedPartTypes(ImmutableHashSet.Create(typeof(IMetadataAsSourceFileProvider)))
Microsoft.CodeAnalysis.CSharp.Features (2)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
23ImmutableHashSet.Create(
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
50var documentImmutableSet = ImmutableHashSet.Create(document);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
137var builder = ImmutableHashSet.CreateBuilder<string>(StringComparer.Ordinal);
Microsoft.CodeAnalysis.EditorFeatures (1)
ReferenceHighlighting\ReferenceHighlightingViewTaggerProvider.cs (1)
155var documentsToSearchBuilder = ImmutableHashSet.CreateBuilder<Document>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Completion\AbstractCompletionProviderTests.cs (1)
113=> document.SourceCodeKind == SourceCodeKind.Regular ? ImmutableHashSet<string>.Empty : ImmutableHashSet.Create(PredefinedInteractiveTextViewRoles.InteractiveTextViewRole);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
292.WithExcludedPartTypes(ImmutableHashSet.Create(typeof(IMetadataAsSourceFileProvider)))
SymbolFinder\DependentTypeFinderTests.cs (5)
651var results = await SymbolFinder.FindDerivedClassesArrayAsync(firstType, solution, transitive: true, ImmutableHashSet.Create(csProject), CancellationToken.None); 656results = await SymbolFinder.FindDerivedClassesArrayAsync(firstType, solution, transitive: true, ImmutableHashSet.Create(otherProject), CancellationToken.None); 705baseClass, solution, transitive: true, ImmutableHashSet.Create(normalProject2)); 712baseClass, solution, transitive: true, ImmutableHashSet.Create(normalProject2)); 719baseClass, solution, transitive: true, ImmutableHashSet.Create(normalProject2));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
FindReferences\FindReferencesTests.vb (1)
257Dim scope = If(searchSingleFileOnly, ImmutableHashSet.Create(Of Document)(document), Nothing)
IntelliSense\CompletionServiceTests.vb (1)
106roles:=ImmutableHashSet.Create("MyTextViewRole"))
ReferenceHighlighting\DocumentHighlightsServiceTests.vb (1)
48csharpDocument, position, ImmutableHashSet.Create(csharpDocument, vbDocument), options, CancellationToken.None)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
VisualBasic\Keywords.cs (1)
18return ImmutableHashSet.CreateRange(
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
VisualBasicParsingTests.cs (2)
23var builder = ImmutableHashSet.CreateBuilder<SyntaxKind>(); 37var expectedKeywordKinds = ImmutableHashSet.CreateRange(SyntaxFacts.GetReservedKeywordKinds());
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
VS\IFSharpWorkspaceProjectContextFactory.cs (2)
109_metadataReferences = ImmutableHashSet.Create<string>(StringComparer.OrdinalIgnoreCase); 168var builder = ImmutableHashSet.CreateBuilder<string>();
Microsoft.CodeAnalysis.Features (13)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
215resultBuilder ??= ImmutableHashSet.CreateBuilder<string>(StringComparer.OrdinalIgnoreCase);
ExternalAccess\UnitTesting\API\UnitTestingInvocationReasons.cs (1)
21: this(ImmutableHashSet.Create(reason))
ExternalAccess\UnitTesting\API\UnitTestingInvocationReasons_Constants.cs (6)
15ImmutableHashSet.Create<string>( 20ImmutableHashSet.Create<string>( 26ImmutableHashSet.Create<string>( 32ImmutableHashSet.Create<string>( 37ImmutableHashSet.Create<string>( 42ImmutableHashSet.Create<string>(
NavigateTo\NavigateToUtilities.cs (1)
18var result = ImmutableHashSet.CreateBuilder<string>(StringComparer.Ordinal);
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
69var documentsToBeSearched = ImmutableHashSet.Create(document);
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (1)
45var multipleLanguagesOptionsBuilder = ImmutableHashSet.CreateBuilder<IOption2>();
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
138_attributeSetForMethodsToIgnore = ImmutableHashSet.CreateRange<INamedTypeSymbol?>(GetAttributesForMethodsToIgnore(compilation));
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
51var attributeSetForMethodsToIgnore = ImmutableHashSet.CreateRange(GetAttributesForMethodsToIgnore(context.Compilation).WhereNotNull());
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (1)
313failedDocuments ??= ImmutableHashSet.CreateBuilder<Document>();
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.InProcOrRemoteHostAnalyzerRunner.cs (1)
245var documentIds = (documentAnalysisScope != null) ? ImmutableHashSet.Create(documentAnalysisScope.TextDocument.Id) : null;
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.HostStates.cs (1)
95var builder = ImmutableHashSet.CreateBuilder<object>();
Handler\Highlights\DocumentHighlightHandler.cs (1)
97ImmutableHashSet.Create(document),
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\DocumentHighlights\RemoteDocumentHighlightsService.cs (1)
41var documentsToSearchSet = ImmutableHashSet.CreateRange(documentsToSearch.WhereNotNull());
Microsoft.CodeAnalysis.VisualBasic (2)
Binding\Binder_Lookup.vb (1)
1886descendants = ImmutableHashSet.Create(currentInfo.InterfaceType.OriginalDefinition)
Declarations\DeclarationTreeBuilder.vb (1)
605Function() ImmutableHashSet.CreateBuilder(IdentifierComparison.Comparer))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (2)
150Return ImmutableHashSet.Create(Of String)() 155Dim builder = ImmutableHashSet.CreateBuilder(Of String)(StringComparer.OrdinalIgnoreCase)
Microsoft.CodeAnalysis.VisualBasic.Features (6)
Completion\CompletionProviders\CompletionUtilities.vb (1)
18Friend ReadOnly CommonTriggerChars As ImmutableHashSet(Of Char) = ImmutableHashSet.Create("."c, "["c, "#"c, " "c, "="c, "<"c, "{"c)
Completion\CompletionProviders\EnumCompletionProvider.vb (1)
88Public Overrides ReadOnly Property TriggerCharacters As ImmutableHashSet(Of Char) = ImmutableHashSet.Create(" "c, "("c, "="c)
Completion\CompletionProviders\ObjectInitializerCompletionProvider.vb (1)
102Public Overrides ReadOnly Property TriggerCharacters As ImmutableHashSet(Of Char) = ImmutableHashSet.Create("."c)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (1)
56Public Overrides ReadOnly Property TriggerCharacters As ImmutableHashSet(Of Char) = ImmutableHashSet.Create("<"c, "/"c, """"c, " "c)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.vb (2)
18Private Shared ReadOnly s_emptyAliasedNames As ImmutableHashSet(Of String) = ImmutableHashSet.Create(Of String)(CaseInsensitiveComparison.Comparer) 20Private Shared ReadOnly s_predefinedTypeMetadataNames As ImmutableHashSet(Of String) = ImmutableHashSet.Create(
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (2)
23Return ImmutableHashSet.Create(Of String)() 28Dim [set] = ImmutableHashSet.CreateBuilder(Of String)(StringComparer.OrdinalIgnoreCase)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (2)
150Return ImmutableHashSet.Create(Of String)() 155Dim builder = ImmutableHashSet.CreateBuilder(Of String)(StringComparer.OrdinalIgnoreCase)
Microsoft.CodeAnalysis.Workspaces (42)
CodeFixes\FixAllOccurrences\FixAllState.cs (2)
43DiagnosticIds = ImmutableHashSet.CreateRange(diagnosticIds); 108var uniqueIds = ImmutableHashSet.CreateBuilder<string>();
Diagnostics\DiagnosticAnalysisResult.cs (2)
124var documentIds = ImmutableHashSet.CreateBuilder<DocumentId>(); 320return ImmutableHashSet.CreateRange(documents);
Diagnostics\SkippedHostAnalyzersInfo.cs (1)
83var fullySkippedHostAnalyzersBuilder = ImmutableHashSet.CreateBuilder<DiagnosticAnalyzer>();
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
72projects ??= ImmutableHashSet.Create(solution.Projects.ToArray());
FindSymbols\FindReferences\FindReferencesSearchEngine.BidirectionalSymbolSet.cs (1)
53var projects = ImmutableHashSet.Create(project);
FindSymbols\FindReferences\FindReferencesSearchEngine.UnidirectionalSymbolSet.cs (1)
51var projects = ImmutableHashSet.Create(project);
FindSymbols\IStreamingFindReferencesProgress.cs (1)
41Symbols = ImmutableHashSet.CreateRange(
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
478return ImmutableHashSet.CreateRange(
Rename\SymbolicRenameLocations.cs (1)
130var locations = ImmutableHashSet.CreateBuilder<RenameLocation>();
SolutionCrawler\InvocationReasons.cs (1)
21: this(ImmutableHashSet.Create(reason))
SolutionCrawler\InvocationReasons_Constants.cs (11)
15ImmutableHashSet.Create<string>( 22ImmutableHashSet.Create<string>( 30ImmutableHashSet.Create<string>( 37ImmutableHashSet.Create<string>( 44ImmutableHashSet.Create<string>( 50ImmutableHashSet.Create<string>( 56ImmutableHashSet.Create<string>( 62ImmutableHashSet.Create<string>( 68ImmutableHashSet.Create<string>( 74ImmutableHashSet.Create<string>( 79ImmutableHashSet.Create<string>(
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
144paths = ImmutableHashSet.Create(PathUtilities.Comparer, fullPath);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
164set = ImmutableHashSet.Create(_equalityComparer, (V)_value!);
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (13)
13/// <inheritdoc cref="ImmutableHashSet.Create{T}()"/> 17/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/> 21/// <inheritdoc cref="ImmutableHashSet.Create{T}(T[])"/> 25/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T})"/> 29/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T}?, T)"/> 33/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T}?, T[])"/> 37/// <inheritdoc cref="ImmutableHashSet.CreateBuilder{T}()"/> 41/// <inheritdoc cref="ImmutableHashSet.CreateBuilder{T}(IEqualityComparer{T}?)"/> 45/// <inheritdoc cref="ImmutableHashSet.CreateRange{T}(IEnumerable{T})"/> 54/// <inheritdoc cref="ImmutableHashSet.CreateRange{T}(IEqualityComparer{T}?, IEnumerable{T})"/> 63/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource})"/> 72/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource}, IEqualityComparer{TSource}?)"/> 81/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(ImmutableHashSet{TSource}.Builder)"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
21= ImmutableHashSet.CreateRange(AnalyzerConfigOptions.KeyComparer, [ 33= ImmutableHashSet.CreateRange(CaseInsensitiveComparison.Comparer, ["unset"]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
114dictionary[key] = ImmutableHashSet.Create(comparer, value);
Workspace\Solution\ProjectDependencyGraph.cs (1)
60private static readonly ObjectPool<ImmutableHashSet<ProjectId>.Builder> s_reverseReferencesBuilderPool = new(static () => ImmutableHashSet.CreateBuilder<ProjectId>(), size: 256);
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildProjectLoader.SolutionFilterReader.cs (1)
56var filterProjects = ImmutableHashSet.CreateBuilder<string>(StringComparer.OrdinalIgnoreCase);
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
63_projectReferences = ImmutableHashSet.CreateBuilder<ProjectReference>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (14)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
164set = ImmutableHashSet.Create(_equalityComparer, (V)_value!);
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (13)
13/// <inheritdoc cref="ImmutableHashSet.Create{T}()"/> 17/// <inheritdoc cref="ImmutableHashSet.Create{T}(T)"/> 21/// <inheritdoc cref="ImmutableHashSet.Create{T}(T[])"/> 25/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T})"/> 29/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T}?, T)"/> 33/// <inheritdoc cref="ImmutableHashSet.Create{T}(IEqualityComparer{T}?, T[])"/> 37/// <inheritdoc cref="ImmutableHashSet.CreateBuilder{T}()"/> 41/// <inheritdoc cref="ImmutableHashSet.CreateBuilder{T}(IEqualityComparer{T}?)"/> 45/// <inheritdoc cref="ImmutableHashSet.CreateRange{T}(IEnumerable{T})"/> 54/// <inheritdoc cref="ImmutableHashSet.CreateRange{T}(IEqualityComparer{T}?, IEnumerable{T})"/> 63/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource})"/> 72/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(IEnumerable{TSource}, IEqualityComparer{TSource}?)"/> 81/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(ImmutableHashSet{TSource}.Builder)"/>
Microsoft.Interop.SourceGeneration (2)
TypeSymbolExtensions.cs (2)
34return IsBlittableWorker(type, ImmutableHashSet.Create<ITypeSymbol>(SymbolEqualityComparer.Default), compilation: null!, &IsConsideredBlittableWorker); 59return IsBlittableWorker(type, ImmutableHashSet.Create<ITypeSymbol>(SymbolEqualityComparer.Default), compilation, &IsStrictlyBlittableWorker);
Microsoft.VisualStudio.LanguageServices (6)
CallHierarchy\Finders\AbstractCallFinder.cs (2)
129return ImmutableHashSet.CreateRange<Document>(currentProject.Documents); 137return ImmutableHashSet.Create<Document>(currentDocument);
Library\ObjectBrowser\AbstractListItemFactory.cs (2)
468var set = ImmutableHashSet.CreateBuilder(new AssemblySymbolComparer()); 509var set = ImmutableHashSet.CreateBuilder(new AssemblySymbolComparer());
Snippets\AbstractSnippetInfoService.cs (1)
37protected IImmutableSet<string> snippetShortcuts = ImmutableHashSet.Create<string>();
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
370var builder = ImmutableHashSet.CreateBuilder<string>();
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\RemoteLanguageServiceWorkspace.cs (2)
171var remoteRootPaths = ImmutableHashSet.CreateBuilder<string>(); 172var externalPaths = ImmutableHashSet.CreateBuilder<string>();
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
CallHierarchy\CallHierarchyTestState.vb (1)
126Return ImmutableHashSet.CreateRange(documents)
RunTests (1)
Program.cs (1)
22private static readonly ImmutableHashSet<string> PrimaryProcessNames = ImmutableHashSet.Create(
System.Collections.Immutable (5)
System\Collections\Immutable\IImmutableSet.cs (2)
17[CollectionBuilder(typeof(ImmutableHashSet), nameof(ImmutableHashSet.Create))]
System\Collections\Immutable\ImmutableHashSet_1.cs (3)
15[CollectionBuilder(typeof(ImmutableHashSet), nameof(ImmutableHashSet.Create))] 836ImmutableHashSet<T> otherAsSet = ImmutableHashSet.CreateRange(origin.EqualityComparer, other);
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
304factoryTypeFullName = typeof(ImmutableHashSet).FullName;