24 references to ToImmutable
Microsoft.AspNetCore.App.Analyzers (2)
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (1)
243return VirtualCharSequence.Create(result.ToImmutable());
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (1)
241return VirtualCharSequence.Create(result.ToImmutable());
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\Converters\CollectionAdapters\ImmutableListBufferAdapter.cs (1)
18public static ImmutableList<TElement> ToResult(ImmutableList<TElement>.Builder buffer) => buffer.ToImmutable();
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableListBufferAdapter.cs (1)
18public static ImmutableList<TElement> ToResult(ImmutableList<TElement>.Builder buffer) => buffer.ToImmutable();
Microsoft.Build (7)
Definition\Project.cs (1)
2537public IEnumerable<IMSBuildGlob> Globs => _globs.ToImmutable();
Evaluation\LazyItemEvaluator.cs (1)
268return items.ToImmutable();
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (1)
175return new OrderedItemDataCollection(_listBuilder.ToImmutable());
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
25_matchOnMetadata = builder.MatchOnMetadata.ToImmutable();
Globbing\Visitor\ParsedGlobCollector.cs (1)
13public ImmutableList<MSBuildGlob> CollectedGlobs => _collectedGlobs.ToImmutable();
Graph\ProjectInterpretation.cs (2)
522return new TargetsToPropagate(targetsForOuterBuild.ToImmutable(), targetsForInnerBuild.ToImmutable());
Microsoft.Build.Framework (1)
ImmutableSegmentedList`1+Builder.cs (1)
216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/>
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (1)
216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/>
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (1)
216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/>
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedList`1+Builder.cs (1)
216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/>
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\InternalsVisibleToCompletionProvider.cs (1)
45: builder.ToImmutable();
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\InternalsVisibleToCompletionProvider.vb (1)
44Return If(builder Is Nothing, ImmutableList(Of SyntaxNode).Empty, builder.ToImmutable())
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (1)
216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/>
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
524_orderedDocumentsInBatch = documentIds.ToImmutable(); 528_project._projectSystemProjectFactory.ApplyChangeToWorkspace(_project.Id, solution => solution.WithProjectDocumentsOrder(_project.Id, documentIds.ToImmutable()));
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
345pendingTranslationActions: translationActionsBuilder.ToImmutable());
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (1)
216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/>
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableList.cs (1)
89return builder.ToImmutable();
System\Collections\Immutable\ImmutableList_1.cs (1)
1122other = builder.ToImmutable();