48 references to ToImmutable
AnalyzerRunner (1)
CodeRefactoringRunner.cs (1)
147builder.Add(language, kindBuilder.ToImmutable());
Microsoft.AspNetCore.Analyzers (1)
CompilationFeatureDetector.cs (1)
55return features.ToImmutable();
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\Converters\CollectionAdapters\ImmutableHashSetBufferAdapter.cs (1)
18public static ImmutableHashSet<TElement> ToResult(ImmutableHashSet<TElement>.Builder buffer) => buffer.ToImmutable();
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableHashSetBufferAdapter.cs (1)
18public static ImmutableHashSet<TElement> ToResult(ImmutableHashSet<TElement>.Builder buffer) => buffer.ToImmutable();
Microsoft.Build (2)
Definition\Project.cs (1)
2538public IEnumerable<string> FragmentStrings => _fragmentStrings.ToImmutable();
Evaluation\LazyItemEvaluator.cs (1)
351globsToIgnoreStack.Push(globsToIgnoreForPreviousOperations.ToImmutable());
Microsoft.CodeAnalysis (7)
DiagnosticAnalyzer\AnalyzerDriver.cs (4)
998return builder.ToImmutable(); 1344return generatedSymbolsBuilder != null ? generatedSymbolsBuilder.ToImmutable() : ImmutableHashSet<ISymbol>.Empty; 1421return suppressedAnalyzersBuilder != null ? suppressedAnalyzersBuilder.ToImmutable() : ImmutableHashSet<DiagnosticAnalyzer>.Empty; 1505return builder.ToImmutable();
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
254return typeNameMap.ToImmutableSortedDictionary(g => g.Key, g => g.Value.ToImmutable(), StringComparer.OrdinalIgnoreCase);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (1)
111/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
261/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
Microsoft.CodeAnalysis.CodeStyle (2)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (1)
111/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
261/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
Microsoft.CodeAnalysis.Collections.Package (2)
ImmutableSegmentedHashSet`1+Builder.cs (1)
111/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
261/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
88NullableWarnings = nullableWarnings.ToImmutable();
Lowering\ClosureConversion\ClosureConversion.cs (1)
197_allCapturedVariables = allCapturedVars.ToImmutable();
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
142return builder.ToImmutable();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
142return builder.ToImmutable();
Microsoft.CodeAnalysis.EditorFeatures (1)
ReferenceHighlighting\ReferenceHighlightingViewTaggerProvider.cs (1)
159var documentsToSearch = documentsToSearchBuilder.ToImmutable();
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
VisualBasicParsingTests.cs (1)
36var actualKeywordKinds = builder.ToImmutable();
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
VS\IFSharpWorkspaceProjectContextFactory.cs (1)
181_metadataReferences = builder.ToImmutable();
Microsoft.CodeAnalysis.Features (2)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
224: resultBuilder.ToImmutable();
NavigateTo\NavigateToUtilities.cs (1)
26return result.ToImmutable();
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (1)
341return (results, failedDocuments?.ToImmutable());
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.HostStates.cs (1)
103return builder.ToImmutable();
Microsoft.CodeAnalysis.VisualBasic (1)
Declarations\DeclarationTreeBuilder.vb (1)
608Dim result = builder.ToImmutable()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (1)
164Return builder.ToImmutable()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (1)
39Return [set].ToImmutable()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (1)
164Return builder.ToImmutable()
Microsoft.CodeAnalysis.Workspaces (6)
CodeFixes\FixAllOccurrences\FixAllState.cs (1)
117return uniqueIds.ToImmutable();
Diagnostics\DiagnosticAnalysisResult.cs (1)
147documentIds: documentIds.ToImmutable(),
Diagnostics\SkippedHostAnalyzersInfo.cs (1)
109var fullySkippedHostAnalyzers = fullySkippedHostAnalyzersBuilder.ToImmutable();
Rename\SymbolicRenameLocations.cs (1)
148return new SearchResult(locations.ToImmutable(), implicitLocations, referencedSymbols);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (1)
111/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
261/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildProjectLoader.SolutionFilterReader.cs (1)
73projectFilter = filterProjects.ToImmutable();
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
180=> _projectReferences.ToImmutable();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+Builder.cs (1)
111/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
src\Dependencies\Collections\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
261/// <inheritdoc cref="ImmutableHashSet{T}.Builder.ToImmutable()"/>
Microsoft.VisualStudio.LanguageServices (3)
Library\ObjectBrowser\AbstractListItemFactory.cs (2)
504return set.ToImmutable(); 532return set.ToImmutable();
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
374return builder.ToImmutable();
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\RemoteLanguageServiceWorkspace.cs (2)
188return (remoteRootPaths.ToImmutable(), externalPaths.ToImmutable());
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableHashSet.cs (1)
181return builder.ToImmutable();