28 references to ToImmutable
Microsoft.CodeAnalysis.Workspaces (28)
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (1)
125
symbol, state, tokens.
ToImmutable
(), processResult, processResultData, cancellationToken);
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (1)
44
return new(result.
ToImmutable
());
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (1)
43
return new(result.
ToImmutable
());
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
138
unsortedBuilderNodes.
ToImmutable
(),
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Create.cs (2)
29
new DeclarationInfo(declaredSymbolInfos.
ToImmutable
()),
33
static kvp => kvp.Value.
ToImmutable
())));
Options\GlobalOptionService.cs (1)
222
RaiseOptionChangedEvent(changedOptions.
ToImmutable
());
Rename\ConflictEngine\DeclarationConflictHelpers.cs (1)
108
resultBuilder.Add(signatureBuilder.
ToImmutable
());
Rename\Renamer.cs (1)
133
actions.
ToImmutable
(),
Rename\SymbolicRenameLocations.cs (3)
108
mergedLocations.
ToImmutable
(),
109
mergedImplicitLocations.
ToImmutable
(),
110
mergedReferencedSymbols.
ToImmutable
());
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
358
return (renameInStrings ? stringLocations.
ToImmutable
() : default,
359
renameInComments ? commentLocations.
ToImmutable
() : default);
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
762
var result = (builder.Count == array.Length) ? array : builder.
ToImmutable
();
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
285
return arrayBuilder.
ToImmutable
();
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
97
result =
ToImmutable
();
360
return this.
ToImmutable
();
408
result =
ToImmutable
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
133
return result.
ToImmutable
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (1)
34
public ImmutableArray<T> ToImmutable() => Builder.
ToImmutable
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (3)
36
visitor.WriteStringArray(friendlyNames.
ToImmutable
());
37
visitor.WriteLocationArray(locations.
ToImmutable
());
46
visitor.WriteSymbolKeyArray(elementTypes.
ToImmutable
());
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
599
return documentsToOpen.
ToImmutable
();
Workspace\Solution\SolutionCompilationState.cs (1)
1715
var removedDocumentStatesForProject = removedDocumentStates.
ToImmutable
();
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
169
solutionChecksum, projectId, documentsToAddOrUpdate.
ToImmutable
(), withFrozenSourceGeneratedDocuments: false, cancellationToken),
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (1)
90
return new RootedSymbolSet(compilation, secondarySymbols.
ToImmutable
());