66 references to ToImmutableAndClear
Microsoft.CodeAnalysis.Workspaces (66)
Classification\IRemoteSemanticClassificationService.cs (1)
95
classificationTypes.
ToImmutableAndClear
(),
CodeActions\CodeAction_Cleanup.cs (1)
102
return documentIdsAndOptions.
ToImmutableAndClear
();
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (2)
176
return changedDocuments.
ToImmutableAndClear
();
189
return result.
ToImmutableAndClear
();
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (1)
91
return builder.
ToImmutableAndClear
();
Diagnostics\DiagnosticAnalysisResult.cs (1)
238
return builder.
ToImmutableAndClear
();
Diagnostics\DiagnosticData.cs (1)
275
return builder.
ToImmutableAndClear
();
Diagnostics\Extensions.cs (2)
396
return diagnosticsBuilder.
ToImmutableAndClear
();
424
return diagnosticsBuilder.
ToImmutableAndClear
();
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (1)
77
return result.
ToImmutableAndClear
();
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (2)
187
return result.
ToImmutableAndClear
();
199
return result.
ToImmutableAndClear
();
FindSymbols\FindReferences\BaseTypeFinder.cs (1)
67
return results.
ToImmutableAndClear
();
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (1)
93
return builder.
ToImmutableAndClear
();
FindSymbols\FindReferences\Finders\AbstractMethodOrPropertyOrEventSymbolReferenceFinder.cs (1)
42
return result.
ToImmutableAndClear
();
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
71
return symbols.
ToImmutableAndClear
();
FindSymbols\FindReferences\FindReferenceCache.cs (3)
187
return result.
ToImmutableAndClear
();
210
return result.
ToImmutableAndClear
();
235
return initializers.
ToImmutableAndClear
();
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
173
return result.
ToImmutableAndClear
();
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (1)
99
await progress.OnReferencesFoundAsync(rehydrated.
ToImmutableAndClear
(), cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_Declarations_CustomQueries.cs (1)
66
return result.
ToImmutableAndClear
();
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
346
return result.
ToImmutableAndClear
();
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
262
checksum, nodes.
ToImmutableAndClear
(), spellChecker, inheritanceMap, receiverTypeNameToExtensionMethodMap);
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (1)
33
return commentChanges.
ToImmutableAndClear
();
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (5)
201
unmergedDocumentChanges.
ToImmutableAndClear
(),
206
return successfullyMergedChanges.
ToImmutableAndClear
();
268
return (NormalizeChanges(combinedChanges.
ToImmutableAndClear
()), mergeConflictResolutionSpans.
ToImmutableAndClear
());
299
return normalizedChanges.
ToImmutableAndClear
();
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
52
return result.
ToImmutableAndClear
();
ReassignedVariable\AbstractReassignedVariableService.cs (1)
59
return result.
ToImmutableAndClear
();
Recommendations\AbstractRecommendationServiceRunner.cs (4)
173
return concreteTypes.
ToImmutableAndClear
();
235
return builder.
ToImmutableAndClear
();
315
return builder.
ToImmutableAndClear
();
425
return result.
ToImmutableAndClear
();
Remote\RemoteUtilities.cs (1)
41
return builder.
ToImmutableAndClear
();
Rename\SymbolicRenameLocations.cs (1)
122
return overloadsResult.
ToImmutableAndClear
();
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
142
return result.
ToImmutableAndClear
();
Shared\Extensions\ITypeSymbolExtensions.cs (1)
124
return builder.
ToImmutableAndClear
();
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
303
return _builder.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICollectionExtensions.cs (1)
24
return result.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
436
return results.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
927
var condDirectives = condDirectivesBuilder.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
278
return changes.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
95
return selectedMembers.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
36
return result.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
62
return builder.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
42
return result.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
54
await consumeItems(items.
ToImmutableAndClear
(), args, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (1)
148
return triviaList.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (2)
282
return result.
ToImmutableAndClear
();
312
return result.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
74
return result.
ToImmutableAndClear
();
TaskList\TaskListItemDescriptor.cs (1)
61
return result.
ToImmutableAndClear
();
Workspace\Host\DocumentService\AbstractSpanMappingService.cs (1)
47
return mappedFilePathAndTextChange.
ToImmutableAndClear
();
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
816
ImmutableArray<AnalyzerReference>.CastUp(initialReferenceList.
ToImmutableAndClear
()),
Workspace\Solution\SolutionCompilationState.cs (5)
652
.WithDocumentStatesOfMultipleProjects<TDocumentState>([(projectId, updatedDocuments.
ToImmutableAndClear
())], GetUpdateDocumentsTranslationAction)
653
.AddDocumentsToMultipleProjects<TDocumentState>(addedDocumentInfos.
ToImmutableAndClear
())
654
.RemoveDocumentsFromSingleProject<TDocumentState>(projectId, removedDocumentInfos.
ToImmutableAndClear
());
844
return (projectId, newDocumentStates.
ToImmutableAndClear
());
1810
return this.WithDocumentTexts(changedDocuments.
ToImmutableAndClear
(), mode);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
774
var documentsWithTrees = documentsWithTreesBuilder.
ToImmutableAndClear
();
883
return builder.
ToImmutableAndClear
();
Workspace\Solution\SourceGeneratorIdentity.cs (1)
46
return result.
ToImmutableAndClear
();
Workspace\Workspace.cs (1)
357
return solution.WithDocumentContentsFrom(relatedDocumentIdsAndStates.
ToImmutableAndClear
(), forceEvenIfTreesWouldDiffer: false);