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