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