70 references to MoveToImmutable
Microsoft.CodeAnalysis.CSharp.Features (5)
BraceCompletion\AbstractCurlyBraceOrBracketCompletionService.cs (1)
215
return mergedChanges.
MoveToImmutable
();
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
275
return globalStatements.
MoveToImmutable
();
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (1)
39
return builder.
MoveToImmutable
();
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (2)
99
return list.
MoveToImmutable
();
157
return result.
MoveToImmutable
();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
58
return result.
MoveToImmutable
();
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
ITextImageHelpers.cs (1)
62
return builder.
MoveToImmutable
();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
962
return list.
MoveToImmutable
();
Microsoft.CodeAnalysis.Features (21)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.cs (1)
191
return results.
MoveToImmutable
();
AddFileBanner\AddFileBannerHelpers.cs (1)
66
return result.
MoveToImmutable
();
AddImport\AbstractAddImportFeatureService.cs (1)
534
return result.
MoveToImmutable
();
AddImport\SearchScopes\SearchScope.cs (1)
89
return results.
MoveToImmutable
();
ChangeSignature\AbstractChangeSignatureService.cs (1)
761
return separators.
MoveToImmutable
();
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
360
return builder.
MoveToImmutable
();
CodeFixes\Service\CodeFixService.cs (1)
938
return builder.
MoveToImmutable
();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (1)
168
return builder.
MoveToImmutable
();
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeNamespaceScopeEditor.cs (1)
112
return result.
MoveToImmutable
();
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
409
return builder.
MoveToImmutable
();
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (1)
192
return itemsBuilder.
MoveToImmutable
();
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (1)
111
properties: builder.
MoveToImmutable
(),
Diagnostics\Service\DocumentAnalysisExecutor.cs (1)
372
return builder.
MoveToImmutable
();
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
272
return list.
MoveToImmutable
();
ExtractMethod\MethodExtractor.Analyzer.cs (1)
334
return result.
MoveToImmutable
();
PdbSourceDocument\DocumentDebugInfoReader.cs (1)
57
return sourceDocuments.
MoveToImmutable
();
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (2)
290
return builder.
MoveToImmutable
();
355
return builder.
MoveToImmutable
();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
219
return result.
MoveToImmutable
();
Wrapping\BinaryExpression\BinaryExpressionCodeActionComputer.cs (1)
136
return result.
MoveToImmutable
();
Wrapping\ChainedExpression\AbstractChainedExpressionWrapper.cs (1)
237
return result.
MoveToImmutable
();
Microsoft.CodeAnalysis.LanguageServer (1)
FileBasedPrograms\VirtualProjectXmlDiagnosticSourceProvider.cs (1)
69
return diagnosticDatas.
MoveToImmutable
();
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (3)
159
actions: unifiedNestedActions.
MoveToImmutable
(),
458
return orderedRefactorings.
MoveToImmutable
();
553
actions: nestedActions.
MoveToImmutable
(),
Handler\SemanticTokens\SemanticTokensHelpers.cs (1)
46
var tokensData = await HandleRequestHelperAsync(contextDocument, spans.
MoveToImmutable
(), supportsVisualStudioExtensions, options, cancellationToken).ConfigureAwait(false);
Workspaces\LspWorkspaceManager.cs (1)
330
return solutions.
MoveToImmutable
();
Microsoft.CodeAnalysis.Remote.ServiceHub (6)
Host\RemoteWorkspace.SolutionCreator.cs (1)
109
solution = solution.WithFrozenSourceGeneratedDocuments(frozenDocuments.
MoveToImmutable
());
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (1)
239
return diagnostics.
MoveToImmutable
();
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
335
return classifiedSpans.
MoveToImmutable
();
Services\SourceGeneration\RemoteSourceGenerationService.cs (2)
48
return result.
MoveToImmutable
();
70
return result.
MoveToImmutable
();
Services\SymbolFinder\RemoteSymbolFinderService.cs (1)
88
return result.
MoveToImmutable
();
Microsoft.CodeAnalysis.Remote.Workspaces (2)
AbstractAssetProvider.cs (1)
130
return documentInfos.
MoveToImmutable
();
AbstractAssetProviderExtensions.cs (1)
80
return result.
MoveToImmutable
();
Microsoft.CodeAnalysis.Workspaces (26)
Classification\IRemoteSemanticClassificationService.cs (2)
96
classificationTriples.
MoveToImmutable
());
113
return classifiedSpans.
MoveToImmutable
();
CodeFixesAndRefactorings\EnumArrayConverter.cs (1)
24
return enums.
MoveToImmutable
();
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
173
return result.
MoveToImmutable
();
FindSymbols\StreamingProgressCollector.cs (1)
44
return result.
MoveToImmutable
();
Rename\IRemoteRenamerService.cs (1)
169
return locBuilder.
MoveToImmutable
();
Serialization\SerializerService_Reference.cs (2)
408
return (AssemblyMetadata.Create(allMetadata.
MoveToImmutable
()), allHandles.
MoveToImmutable
());
Shared\Extensions\SourceTextExtensions.cs (1)
284
var chunksArray = chunks.
MoveToImmutable
();
Shared\Utilities\BloomFilter.cs (1)
424
_hashes = hashBuilder.
MoveToImmutable
();
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (4)
21
/// <see cref="
MoveToImmutable
"/> is called, this type is entirely garbage free. In the non-golden path (usually
33
/// Exactly that number of elements is actually added prior to calling <see cref="
MoveToImmutable
"/>. This means no
38
/// cref="
MoveToImmutable
"/>).
118
/// cref="
MoveToImmutable
"/> without that number of elements actually having been added to the builder. This will
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
194
return builder.
MoveToImmutable
();
527
return builder.
MoveToImmutable
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ObjectWriterExtensions.cs (1)
34
return builder.
MoveToImmutable
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
95
return result.
MoveToImmutable
();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IParameterSymbolExtensions.cs (1)
19
return result.
MoveToImmutable
();
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (1)
172
_analyzerReferences.Add(checksum, builder.
MoveToImmutable
());
Workspace\Solution\Solution.cs (1)
849
return WithCompilationState(CompilationState.WithProjectAnalyzerReferences(projectId, builder.
MoveToImmutable
()));
Workspace\Solution\StateChecksums.cs (1)
581
return new ChecksumCollection(checksums.
MoveToImmutable
());
Workspace\Solution\TextDocumentStates.cs (4)
140
return result.
MoveToImmutable
();
325
new ChecksumCollection(attributeChecksums.
MoveToImmutable
()),
326
new ChecksumCollection(textChecksums.
MoveToImmutable
()),
327
documentIds.
MoveToImmutable
());
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
449
return results.
MoveToImmutable
();