1 instantiation of Builder
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
175return new Builder(this);
274 references to Builder
AnalyzerRunner (3)
CodeRefactoringRunner.cs (1)
136var kindBuilder = ImmutableHashSet.CreateBuilder<int>();
Options.cs (2)
120var builder = ImmutableHashSet.CreateBuilder<string>(); 121var refactoringBuilder = ImmutableHashSet.CreateBuilder<string>();
Microsoft.AspNetCore.Analyzers (1)
CompilationFeatureDetector.cs (1)
27var features = ImmutableHashSet.CreateBuilder<string>();
Microsoft.AspNetCore.Components.Endpoints (8)
FormMapping\Converters\CollectionAdapters\ImmutableHashSetBufferAdapter.cs (7)
8internal sealed class ImmutableHashSetBufferAdapter<TElement> : ICollectionBufferAdapter<ImmutableHashSet<TElement>, ImmutableHashSet<TElement>.Builder, TElement> 10public static ImmutableHashSet<TElement>.Builder CreateBuffer() => ImmutableHashSet.CreateBuilder<TElement>(); 12public static ImmutableHashSet<TElement>.Builder Add(ref ImmutableHashSet<TElement>.Builder buffer, TElement element) 18public static ImmutableHashSet<TElement> ToResult(ImmutableHashSet<TElement>.Builder buffer) => buffer.ToImmutable(); 28ImmutableHashSet<TElement>.Builder, 30ImmutableHashSet<TElement>.Builder,
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (1)
154new CollectionConverter<ImmutableHashSet<TElement>, ImmutableHashSetBufferAdapter<TElement>, ImmutableHashSet<TElement>.Builder, TElement>(elementTypeConverter),
Microsoft.AspNetCore.Http.Extensions (8)
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableHashSetBufferAdapter.cs (7)
8internal sealed class ImmutableHashSetBufferAdapter<TElement> : ICollectionBufferAdapter<ImmutableHashSet<TElement>, ImmutableHashSet<TElement>.Builder, TElement> 10public static ImmutableHashSet<TElement>.Builder CreateBuffer() => ImmutableHashSet.CreateBuilder<TElement>(); 12public static ImmutableHashSet<TElement>.Builder Add(ref ImmutableHashSet<TElement>.Builder buffer, TElement element) 18public static ImmutableHashSet<TElement> ToResult(ImmutableHashSet<TElement>.Builder buffer) => buffer.ToImmutable(); 28ImmutableHashSet<TElement>.Builder, 30ImmutableHashSet<TElement>.Builder,
src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (1)
154new CollectionConverter<ImmutableHashSet<TElement>, ImmutableHashSetBufferAdapter<TElement>, ImmutableHashSet<TElement>.Builder, TElement>(elementTypeConverter),
Microsoft.Build (4)
Definition\Project.cs (1)
2535private ImmutableHashSet<string>.Builder _fragmentStrings;
Evaluation\LazyItemEvaluator.cs (1)
345var globsToIgnoreForPreviousOperations = removeOperation.GetRemovedGlobs();
Evaluation\LazyItemEvaluator.RemoveOperation.cs (2)
95public ImmutableHashSet<string>.Builder GetRemovedGlobs() 97var builder = ImmutableHashSet.CreateBuilder<string>();
Microsoft.CodeAnalysis (48)
DiagnosticAnalyzer\AnalyzerDriver.cs (6)
533var builder = ImmutableHashSet.CreateBuilder<DiagnosticAnalyzer>(); 552var builder = ImmutableHashSet.CreateBuilder<DiagnosticAnalyzer>(); 975var builder = ImmutableHashSet.CreateBuilder<ReportDiagnostic>(); 1331ImmutableHashSet<ISymbol>.Builder? generatedSymbolsBuilder = null; 1372ImmutableHashSet<DiagnosticAnalyzer>.Builder? suppressedAnalyzersBuilder = null; 1499var builder = ImmutableHashSet.CreateBuilder<DiagnosticAnalyzer>();
DiagnosticAnalyzer\AnalyzerFileReference.cs (3)
227Dictionary<string, ImmutableHashSet<string>.Builder> typeNameMap = new Dictionary<string, ImmutableHashSet<string>.Builder>(StringComparer.OrdinalIgnoreCase); 242if (!typeNameMap.TryGetValue(supportedLanguage, out var builder))
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
81/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(ImmutableHashSet{TSource}.Builder)"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (19)
24/// <inheritdoc cref="ImmutableHashSet{T}.Builder.KeyComparer"/> 31/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Count"/> 36/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/> 40/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Clear()"/> 44/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Contains(T)"/> 48/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ExceptWith(IEnumerable{T})"/> 63/// <inheritdoc cref="ImmutableHashSet{T}.Builder.GetEnumerator()"/> 67/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IntersectWith(IEnumerable{T})"/> 71/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSubsetOf(IEnumerable{T})"/> 75/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSupersetOf(IEnumerable{T})"/> 79/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSubsetOf(IEnumerable{T})"/> 83/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSupersetOf(IEnumerable{T})"/> 87/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Overlaps(IEnumerable{T})"/> 91/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Remove(T)"/> 95/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SetEquals(IEnumerable{T})"/> 99/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SymmetricExceptWith(IEnumerable{T})"/> 103/// <inheritdoc cref="ImmutableHashSet{T}.Builder.TryGetValue(T, out T)"/> 107/// <inheritdoc cref="ImmutableHashSet{T}.Builder.UnionWith(IEnumerable{T})"/> 111/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (19)
35/// <inheritdoc cref="ImmutableHashSet{T}.Builder.KeyComparer"/> 53/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Count"/> 74/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/> 83/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Clear()"/> 100/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Contains(T)"/> 104/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ExceptWith(IEnumerable{T})"/> 165/// <inheritdoc cref="ImmutableHashSet{T}.Builder.GetEnumerator()"/> 169/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IntersectWith(IEnumerable{T})"/> 173/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSubsetOf(IEnumerable{T})"/> 177/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSupersetOf(IEnumerable{T})"/> 181/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSubsetOf(IEnumerable{T})"/> 185/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSupersetOf(IEnumerable{T})"/> 189/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Overlaps(IEnumerable{T})"/> 193/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Remove(T)"/> 202/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SetEquals(IEnumerable{T})"/> 206/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SymmetricExceptWith(IEnumerable{T})"/> 210/// <inheritdoc cref="ImmutableHashSet{T}.Builder.TryGetValue(T, out T)"/> 223/// <inheritdoc cref="ImmutableHashSet{T}.Builder.UnionWith(IEnumerable{T})"/> 261/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
Microsoft.CodeAnalysis.CodeStyle (41)
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (1)
45var multipleLanguagesOptionsBuilder = ImmutableHashSet.CreateBuilder<IOption2>();
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
81/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(ImmutableHashSet{TSource}.Builder)"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (19)
24/// <inheritdoc cref="ImmutableHashSet{T}.Builder.KeyComparer"/> 31/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Count"/> 36/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/> 40/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Clear()"/> 44/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Contains(T)"/> 48/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ExceptWith(IEnumerable{T})"/> 63/// <inheritdoc cref="ImmutableHashSet{T}.Builder.GetEnumerator()"/> 67/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IntersectWith(IEnumerable{T})"/> 71/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSubsetOf(IEnumerable{T})"/> 75/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSupersetOf(IEnumerable{T})"/> 79/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSubsetOf(IEnumerable{T})"/> 83/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSupersetOf(IEnumerable{T})"/> 87/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Overlaps(IEnumerable{T})"/> 91/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Remove(T)"/> 95/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SetEquals(IEnumerable{T})"/> 99/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SymmetricExceptWith(IEnumerable{T})"/> 103/// <inheritdoc cref="ImmutableHashSet{T}.Builder.TryGetValue(T, out T)"/> 107/// <inheritdoc cref="ImmutableHashSet{T}.Builder.UnionWith(IEnumerable{T})"/> 111/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (19)
35/// <inheritdoc cref="ImmutableHashSet{T}.Builder.KeyComparer"/> 53/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Count"/> 74/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/> 83/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Clear()"/> 100/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Contains(T)"/> 104/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ExceptWith(IEnumerable{T})"/> 165/// <inheritdoc cref="ImmutableHashSet{T}.Builder.GetEnumerator()"/> 169/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IntersectWith(IEnumerable{T})"/> 173/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSubsetOf(IEnumerable{T})"/> 177/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSupersetOf(IEnumerable{T})"/> 181/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSubsetOf(IEnumerable{T})"/> 185/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSupersetOf(IEnumerable{T})"/> 189/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Overlaps(IEnumerable{T})"/> 193/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Remove(T)"/> 202/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SetEquals(IEnumerable{T})"/> 206/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SymmetricExceptWith(IEnumerable{T})"/> 210/// <inheritdoc cref="ImmutableHashSet{T}.Builder.TryGetValue(T, out T)"/> 223/// <inheritdoc cref="ImmutableHashSet{T}.Builder.UnionWith(IEnumerable{T})"/> 261/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
244public static void AppendToAliasNameSet(this string? alias, ImmutableHashSet<string>.Builder builder)
Microsoft.CodeAnalysis.Collections.Package (39)
ImmutableSegmentedHashSet.cs (1)
81/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(ImmutableHashSet{TSource}.Builder)"/>
ImmutableSegmentedHashSet`1+Builder.cs (19)
24/// <inheritdoc cref="ImmutableHashSet{T}.Builder.KeyComparer"/> 31/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Count"/> 36/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/> 40/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Clear()"/> 44/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Contains(T)"/> 48/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ExceptWith(IEnumerable{T})"/> 63/// <inheritdoc cref="ImmutableHashSet{T}.Builder.GetEnumerator()"/> 67/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IntersectWith(IEnumerable{T})"/> 71/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSubsetOf(IEnumerable{T})"/> 75/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSupersetOf(IEnumerable{T})"/> 79/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSubsetOf(IEnumerable{T})"/> 83/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSupersetOf(IEnumerable{T})"/> 87/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Overlaps(IEnumerable{T})"/> 91/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Remove(T)"/> 95/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SetEquals(IEnumerable{T})"/> 99/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SymmetricExceptWith(IEnumerable{T})"/> 103/// <inheritdoc cref="ImmutableHashSet{T}.Builder.TryGetValue(T, out T)"/> 107/// <inheritdoc cref="ImmutableHashSet{T}.Builder.UnionWith(IEnumerable{T})"/> 111/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
ImmutableSegmentedHashSet`1+ValueBuilder.cs (19)
35/// <inheritdoc cref="ImmutableHashSet{T}.Builder.KeyComparer"/> 53/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Count"/> 74/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/> 83/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Clear()"/> 100/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Contains(T)"/> 104/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ExceptWith(IEnumerable{T})"/> 165/// <inheritdoc cref="ImmutableHashSet{T}.Builder.GetEnumerator()"/> 169/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IntersectWith(IEnumerable{T})"/> 173/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSubsetOf(IEnumerable{T})"/> 177/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSupersetOf(IEnumerable{T})"/> 181/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSubsetOf(IEnumerable{T})"/> 185/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSupersetOf(IEnumerable{T})"/> 189/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Overlaps(IEnumerable{T})"/> 193/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Remove(T)"/> 202/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SetEquals(IEnumerable{T})"/> 206/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SymmetricExceptWith(IEnumerable{T})"/> 210/// <inheritdoc cref="ImmutableHashSet{T}.Builder.TryGetValue(T, out T)"/> 223/// <inheritdoc cref="ImmutableHashSet{T}.Builder.UnionWith(IEnumerable{T})"/> 261/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
Microsoft.CodeAnalysis.CSharp (3)
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>();
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (3)
137var builder = ImmutableHashSet.CreateBuilder<string>(StringComparer.Ordinal); 145private static void AppendAliasNames(SyntaxList<UsingDirectiveSyntax> usings, ImmutableHashSet<string>.Builder builder) 158private static void AppendAliasNames(IEnumerable<BaseNamespaceDeclarationSyntax> namespaces, ImmutableHashSet<string>.Builder builder, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (3)
137var builder = ImmutableHashSet.CreateBuilder<string>(StringComparer.Ordinal); 145private static void AppendAliasNames(SyntaxList<UsingDirectiveSyntax> usings, ImmutableHashSet<string>.Builder builder) 158private static void AppendAliasNames(IEnumerable<BaseNamespaceDeclarationSyntax> namespaces, ImmutableHashSet<string>.Builder builder, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.EditorFeatures (1)
ReferenceHighlighting\ReferenceHighlightingViewTaggerProvider.cs (1)
155var documentsToSearchBuilder = ImmutableHashSet.CreateBuilder<Document>();
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
VisualBasicParsingTests.cs (1)
23var builder = ImmutableHashSet.CreateBuilder<SyntaxKind>();
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
VS\IFSharpWorkspaceProjectContextFactory.cs (1)
168var builder = ImmutableHashSet.CreateBuilder<string>();
Microsoft.CodeAnalysis.Features (4)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (2)
180var resultBuilder = (ImmutableHashSet<string>.Builder?)null;
NavigateTo\NavigateToUtilities.cs (1)
18var result = ImmutableHashSet.CreateBuilder<string>(StringComparer.Ordinal);
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (1)
45var multipleLanguagesOptionsBuilder = ImmutableHashSet.CreateBuilder<IOption2>();
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (1)
302ImmutableHashSet<Document>.Builder? failedDocuments = null;
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.HostStates.cs (1)
95var builder = ImmutableHashSet.CreateBuilder<object>();
Microsoft.CodeAnalysis.VisualBasic (3)
Declarations\DeclarationTreeBuilder.vb (3)
604Private Shared ReadOnly s_memberNameBuilderPool As New ObjectPool(Of ImmutableHashSet(Of String).Builder)( 607Private Shared Function ToImmutableAndFree(builder As ImmutableHashSet(Of String).Builder) As ImmutableHashSet(Of String) 736Private Sub AddMemberNames(methodDecl As MethodBaseSyntax, results As ImmutableHashSet(Of String).Builder)
Microsoft.CodeAnalysis.Workspaces (47)
CodeFixes\FixAllOccurrences\FixAllState.cs (1)
108var uniqueIds = ImmutableHashSet.CreateBuilder<string>();
Diagnostics\DiagnosticAnalysisResult.cs (1)
124var documentIds = ImmutableHashSet.CreateBuilder<DocumentId>();
Diagnostics\SkippedHostAnalyzersInfo.cs (1)
83var fullySkippedHostAnalyzersBuilder = ImmutableHashSet.CreateBuilder<DiagnosticAnalyzer>();
Rename\SymbolicRenameLocations.cs (1)
130var locations = ImmutableHashSet.CreateBuilder<RenameLocation>();
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
81/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(ImmutableHashSet{TSource}.Builder)"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (19)
24/// <inheritdoc cref="ImmutableHashSet{T}.Builder.KeyComparer"/> 31/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Count"/> 36/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/> 40/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Clear()"/> 44/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Contains(T)"/> 48/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ExceptWith(IEnumerable{T})"/> 63/// <inheritdoc cref="ImmutableHashSet{T}.Builder.GetEnumerator()"/> 67/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IntersectWith(IEnumerable{T})"/> 71/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSubsetOf(IEnumerable{T})"/> 75/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSupersetOf(IEnumerable{T})"/> 79/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSubsetOf(IEnumerable{T})"/> 83/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSupersetOf(IEnumerable{T})"/> 87/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Overlaps(IEnumerable{T})"/> 91/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Remove(T)"/> 95/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SetEquals(IEnumerable{T})"/> 99/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SymmetricExceptWith(IEnumerable{T})"/> 103/// <inheritdoc cref="ImmutableHashSet{T}.Builder.TryGetValue(T, out T)"/> 107/// <inheritdoc cref="ImmutableHashSet{T}.Builder.UnionWith(IEnumerable{T})"/> 111/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (19)
35/// <inheritdoc cref="ImmutableHashSet{T}.Builder.KeyComparer"/> 53/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Count"/> 74/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/> 83/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Clear()"/> 100/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Contains(T)"/> 104/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ExceptWith(IEnumerable{T})"/> 165/// <inheritdoc cref="ImmutableHashSet{T}.Builder.GetEnumerator()"/> 169/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IntersectWith(IEnumerable{T})"/> 173/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSubsetOf(IEnumerable{T})"/> 177/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSupersetOf(IEnumerable{T})"/> 181/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSubsetOf(IEnumerable{T})"/> 185/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSupersetOf(IEnumerable{T})"/> 189/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Overlaps(IEnumerable{T})"/> 193/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Remove(T)"/> 202/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SetEquals(IEnumerable{T})"/> 206/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SymmetricExceptWith(IEnumerable{T})"/> 210/// <inheritdoc cref="ImmutableHashSet{T}.Builder.TryGetValue(T, out T)"/> 223/// <inheritdoc cref="ImmutableHashSet{T}.Builder.UnionWith(IEnumerable{T})"/> 261/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\StringExtensions.cs (1)
244public static void AppendToAliasNameSet(this string? alias, ImmutableHashSet<string>.Builder builder)
Workspace\Solution\ProjectDependencyGraph.cs (3)
60private static readonly ObjectPool<ImmutableHashSet<ProjectId>.Builder> s_reverseReferencesBuilderPool = new(static () => ImmutableHashSet.CreateBuilder<ProjectId>(), size: 256); 216using var _1 = PooledDictionary<ProjectId, ImmutableHashSet<ProjectId>.Builder>.GetInstance(out var reverseReferencesMapBuilders); 221if (!reverseReferencesMapBuilders.TryGetValue(referencedId, out var builder))
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildProjectLoader.SolutionFilterReader.cs (1)
56var filterProjects = ImmutableHashSet.CreateBuilder<string>(StringComparer.OrdinalIgnoreCase);
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
56private readonly ImmutableHashSet<ProjectReference>.Builder _projectReferences;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (39)
src\Dependencies\Collections\ImmutableSegmentedHashSet.cs (1)
81/// <inheritdoc cref="ImmutableHashSet.ToImmutableHashSet{TSource}(ImmutableHashSet{TSource}.Builder)"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (19)
24/// <inheritdoc cref="ImmutableHashSet{T}.Builder.KeyComparer"/> 31/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Count"/> 36/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/> 40/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Clear()"/> 44/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Contains(T)"/> 48/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ExceptWith(IEnumerable{T})"/> 63/// <inheritdoc cref="ImmutableHashSet{T}.Builder.GetEnumerator()"/> 67/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IntersectWith(IEnumerable{T})"/> 71/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSubsetOf(IEnumerable{T})"/> 75/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSupersetOf(IEnumerable{T})"/> 79/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSubsetOf(IEnumerable{T})"/> 83/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSupersetOf(IEnumerable{T})"/> 87/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Overlaps(IEnumerable{T})"/> 91/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Remove(T)"/> 95/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SetEquals(IEnumerable{T})"/> 99/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SymmetricExceptWith(IEnumerable{T})"/> 103/// <inheritdoc cref="ImmutableHashSet{T}.Builder.TryGetValue(T, out T)"/> 107/// <inheritdoc cref="ImmutableHashSet{T}.Builder.UnionWith(IEnumerable{T})"/> 111/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (19)
35/// <inheritdoc cref="ImmutableHashSet{T}.Builder.KeyComparer"/> 53/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Count"/> 74/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Add(T)"/> 83/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Clear()"/> 100/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Contains(T)"/> 104/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ExceptWith(IEnumerable{T})"/> 165/// <inheritdoc cref="ImmutableHashSet{T}.Builder.GetEnumerator()"/> 169/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IntersectWith(IEnumerable{T})"/> 173/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSubsetOf(IEnumerable{T})"/> 177/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsProperSupersetOf(IEnumerable{T})"/> 181/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSubsetOf(IEnumerable{T})"/> 185/// <inheritdoc cref="ImmutableHashSet{T}.Builder.IsSupersetOf(IEnumerable{T})"/> 189/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Overlaps(IEnumerable{T})"/> 193/// <inheritdoc cref="ImmutableHashSet{T}.Builder.Remove(T)"/> 202/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SetEquals(IEnumerable{T})"/> 206/// <inheritdoc cref="ImmutableHashSet{T}.Builder.SymmetricExceptWith(IEnumerable{T})"/> 210/// <inheritdoc cref="ImmutableHashSet{T}.Builder.TryGetValue(T, out T)"/> 223/// <inheritdoc cref="ImmutableHashSet{T}.Builder.UnionWith(IEnumerable{T})"/> 261/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
Microsoft.VisualStudio.LanguageServices (3)
Library\ObjectBrowser\AbstractListItemFactory.cs (2)
468var set = ImmutableHashSet.CreateBuilder(new AssemblySymbolComparer()); 509var set = ImmutableHashSet.CreateBuilder(new AssemblySymbolComparer());
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>();
System.Collections.Immutable (8)
System\Collections\Immutable\ImmutableHashSet.cs (3)
137public static ImmutableHashSet<T>.Builder CreateBuilder<T>() 150public static ImmutableHashSet<T>.Builder CreateBuilder<T>(IEqualityComparer<T>? equalityComparer) 177public static ImmutableHashSet<TSource> ToImmutableHashSet<TSource>(this ImmutableHashSet<TSource>.Builder builder)
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (2)
11/// Contains the inner <see cref="ImmutableHashSet{T}.Builder"/> class. 64/// Initializes a new instance of the <see cref="ImmutableHashSet{T}.Builder"/> class.
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
170public Builder ToBuilder()
System\Collections\Immutable\ImmutableHashSet_1.Enumerator.cs (2)
21private readonly Builder? _builder; 43internal Enumerator(SortedInt32KeyNode<HashBucket> root, Builder? builder = null)