263 references to ToImmutableAndClear
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\KnownSourcePasteProcessor.cs (1)
219return edits.ToImmutableAndClear();
StringCopyPaste\UnknownSourcePasteProcessor.cs (1)
142return edits.ToImmutableAndClear();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Structure\CommentStructureTests.cs (1)
30return result.ToImmutableAndClear();
Microsoft.CodeAnalysis.CSharp.Features (25)
CodeLens\CSharpCodeLensMemberFinder.cs (1)
36return codeLensNodes.ToImmutableAndClear();
Completion\CompletionProviders\CrefCompletionProvider.cs (2)
207return result.ToImmutableAndClear(); 224return result.ToImmutableAndClear();
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
61return result.ToImmutableAndClear();
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (1)
149return statements.ToImmutableAndClear();
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (1)
108return new(classDeclaration, methodDeclaration, firstParameterSymbol, methodTypeParameters.ToImmutableAndClear());
DocumentHighlighting\CSharpDocumentHighlightsService.cs (1)
74return results.ToImmutableAndClear();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
683return result.ToImmutableAndClear();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.MultipleStatementsCodeGenerator.cs (1)
63return list.ToImmutableAndClear();
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
113return result.ToImmutableAndClear();
LanguageServices\CSharpStructuralTypeDisplayService.cs (1)
60return members.ToImmutableAndClear();
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (1)
163return builder.ToImmutableAndClear();
LineSeparators\CSharpLineSeparatorService.cs (1)
65return spans.ToImmutableAndClear();
NavigationBar\CSharpNavigationBarItemService.cs (1)
131return items.ToImmutableAndClear();
Snippets\AbstractCSharpForLoopSnippetProvider.cs (1)
113return result.ToImmutableAndClear();
Snippets\CSharpForEachLoopSnippetProvider.cs (1)
120return arrayBuilder.ToImmutableAndClear();
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
852return matches.ToImmutableAndClear();
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
197memberAccessExpressions = references.ToImmutableAndClear();
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
316referenceLocations = references.ToImmutableAndClear();
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
535return fields.ToImmutableAndClear(); 559return fields.ToImmutableAndClear();
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (1)
71return resultBuilder.ToImmutableAndClear();
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
58return result.ToImmutableAndClear();
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
119return result.ToImmutableAndClear();
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
131return result.ToImmutableAndClear();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
156return builder.ToImmutableAndClear();
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
922return symbols.ToImmutableAndClear();
Rename\CSharpRenameRewriterLanguageService.cs (1)
921return conflicts.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
390return builder.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
127return [.. tokens.ToImmutableAndClear()];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
87return baseListTypes.ToImmutableAndClear();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Structure\AbstractSyntaxNodeStructureProviderTests.cs (1)
50return actualRegions.ToImmutableAndClear();
Structure\AbstractSyntaxTriviaStructureProviderTests.cs (1)
29return actualRegions.ToImmutableAndClear();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Snippets\RoslynLSPSnippetConvertTests.cs (1)
419return arrayBuilder.ToImmutableAndClear();
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
RazorSourceGeneratedDocumentSpanMappingService.cs (2)
56return changesBuilder.ToImmutableAndClear(); 82return spansBuilder.ToImmutableAndClear();
Microsoft.CodeAnalysis.Features (126)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.cs (1)
107return actions.ToImmutableAndClear();
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.State.cs (1)
95return applicableConstructors.ToImmutableAndClear();
AddImport\AbstractAddImportFeatureService.cs (4)
128return result.ToImmutableAndClear(); 345return result.ToImmutableAndClear(); 600return fixes.ToImmutableAndClear(); 616return result.ToImmutableAndClear();
AddImport\CodeActions\InstallPackageAndAddImportCodeAction.cs (1)
59return result.ToImmutableAndClear();
AddImport\SymbolReferenceFinder.cs (1)
616return references.ToImmutableAndClear();
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (1)
88return (TypeQuery.Default, result.ToImmutableAndClear(), inAttributeContext: false);
AddPackage\ParentInstallPackageCodeAction.cs (1)
104return codeActions.ToImmutableAndClear();
ChangeSignature\DelegateInvokeMethodReferenceFinder.cs (1)
64return result.ToImmutableAndClear();
CodeFixes\Service\CodeFixService.cs (1)
665return fixes.ToImmutableAndClear();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (2)
76pragmaActionsBuilder.ToImmutableAndClear(), 77pragmaDiagnosticsBuilder.ToImmutableAndClear(),
CodeFixesAndRefactorings\AbstractFixAllGetFixesService.cs (1)
221return result.ToImmutableAndClear();
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (1)
66return actions.ToImmutableAndClear();
CodeRefactorings\MoveType\AbstractMoveTypeService.cs (2)
135return actions.ToImmutableAndClear(); 239return suggestedFileNames.ToImmutableAndClear();
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
538return builder.ToImmutableAndClear();
Common\AbstractProjectExtensionProvider.cs (2)
76return builder.ToImmutableAndClear(); 187return builder.ToImmutableAndClear();
Common\GlyphExtensions.cs (1)
30return builder.ToImmutableAndClear();
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
249return items.ToImmutableAndClear();
Completion\Providers\AbstractKeywordCompletionProvider.cs (1)
72return result.ToImmutableAndClear();
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
213return itemListBuilder.ToImmutableAndClear();
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (1)
112return usingsBuilder.ToImmutableAndClear();
Completion\Providers\ImportCompletionProvider\TypeImportCompletionCacheEntry.cs (1)
132return builder.ToImmutableAndClear();
Completion\Providers\Scripting\AbstractReferenceDirectiveCompletionProvider.cs (1)
47return builder.ToImmutableAndClear();
Completion\Providers\Scripting\GlobalAssemblyCacheCompletionHelper.cs (1)
57return result.ToImmutableAndClear();
Completion\Providers\SymbolCompletionItem.cs (2)
156return symbols.ToImmutableAndClear(); 274return builder.ToImmutableAndClear();
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
388return builder.ToImmutableAndClear();
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (3)
474return result.ToImmutableAndClear(); 486return result.ToImmutableAndClear(); 539return result.ToImmutableAndClear();
Copilot\CopilotChangeAnalysisUtilities.cs (1)
83return builder.ToImmutableAndClear();
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
264return results.ToImmutableAndClear();
Diagnostics\AbstractAnalyzerDriverService.cs (1)
19return infos.ToImmutableAndClear();
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnostics.cs (1)
94return builder.ToImmutableAndClear();
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
88return list.ToImmutableAndClear();
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
69return diagnostics.ToImmutableAndClear();
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
2462lineEdits.Add(new SequencePointUpdates(currentDocumentPath, documentLineEdits.ToImmutableAndClear())); 4066return builder.ToImmutableAndClear();
EditAndContinue\ActiveStatementsMap.cs (1)
252return builder.ToImmutableAndClear();
EditAndContinue\DebuggingSession.cs (2)
838return spans.ToImmutableAndClear(); 915return adjustedMappedSpans.ToImmutableAndClear();
EditAndContinue\EditAndContinueCapabilities.cs (1)
145return builder.ToImmutableAndClear();
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (1)
172return activeStatementSpansBuilder.ToImmutableAndClear();
EditAndContinue\EmitSolutionUpdateResults.cs (3)
78return builder.ToImmutableAndClear(); 418return result.ToImmutableAndClear(); 463return result.ToImmutableAndClear();
EditAndContinue\ProjectDiagnostics.cs (1)
32return result.ToImmutableAndClear();
EmbeddedLanguages\Json\JsonLexer.cs (1)
232return result.ToImmutableAndClear();
EmbeddedLanguages\Json\JsonParser.cs (1)
324return result.ToImmutableAndClear();
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (1)
125return result.ToImmutableAndClear();
EmbeddedLanguages\StackFrame\StackFrameLexer.cs (1)
434return builder.ToImmutableAndClear();
EmbeddedLanguages\StackFrame\StackFrameParser.cs (1)
525builder.Add(new StackFrameArrayRankSpecifier(openBracket, closeBracket, commaBuilder.ToImmutableAndClear()));
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (2)
69return result.ToImmutableAndClear(); 162return result.ToImmutableAndClear();
ExtractInterface\AbstractExtractInterfaceService.cs (1)
421return interfaceMembers.ToImmutableAndClear();
ExtractMethod\MethodExtractor.CodeGenerator.cs (2)
353return list.ToImmutableAndClear(); 445return parameters.ToImmutableAndClear();
FindUsages\AbstractFindUsagesService_FindReferences.cs (1)
80return result.ToImmutableAndClear();
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
203return operators.ToImmutableAndClear();
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.cs (1)
107return results.ToImmutableAndClear();
GenerateFromMembers\GenerateFromMembersHelpers.cs (1)
112return parameters.ToImmutableAndClear();
GenerateType\AbstractGenerateTypeService.cs (1)
229return typeParameters.ToImmutableAndClear();
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (1)
112return members.ToImmutableAndClear();
GoToDefinition\GoToDefinitionFeatureHelpers.cs (1)
96return definitions.ToImmutableAndClear();
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (5)
73return builder.ToImmutableAndClear(); 154return result.ToImmutableAndClear(); 278return items.ToImmutableAndClear(); 672return builder.ToImmutableAndClear(); 767return builder.ToImmutableAndClear();
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (2)
151return allActions.ToImmutableAndClear(); 233return result.ToImmutableAndClear();
InlineHints\AbstractInlineParameterNameHintsService.cs (1)
77return result.ToImmutableAndClear();
InlineHints\AbstractInlineTypeHintsService.cs (1)
101return result.ToImmutableAndClear();
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
459return builder.ToImmutableAndClear();
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
421return builder.ToImmutableAndClear();
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (2)
59return result.ToImmutableAndClear(); 209return result.ToImmutableAndClear();
MetadataAsSource\AbstractMetadataAsSourceService.DocCommentFormatter.cs (1)
142return formattedCommentLinesBuilder.ToImmutableAndClear();
MoveToNamespace\MoveToNamespaceCodeAction.cs (1)
84return operations.ToImmutableAndClear();
NavigateTo\AbstractNavigateToSearchService.cs (1)
51await onResultsFound(results.ToImmutableAndClear()).ConfigureAwait(false);
NavigateTo\NavigateToSearcher.cs (2)
343return result.ToImmutableAndClear(); 404_callback.AddResultsAsync(nonDuplicates.ToImmutableAndClear(), cancellationToken);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
366return documents.ToImmutableAndClear();
QuickInfo\CommonSemanticQuickInfoProvider.cs (2)
132var supportedPlatforms = new SupportedPlatformData(solution, invalidProjects.ToImmutableAndClear(), candidateProjects); 323return filteredSymbols.ToImmutableAndClear();
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
424return result.ToImmutableAndClear();
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
412return result.ToImmutableAndClear();
Shared\Utilities\ExtractTypeHelpers.cs (2)
183return typeParameters.ToImmutableAndClear(); 198return directlyReferencedTypeParameters.ToImmutableAndClear();
SignatureHelp\AbstractSignatureHelpProvider.cs (2)
293var platformData = new SupportedPlatformData(document.Project.Solution, invalidProjectsForCurrentSymbol.ToImmutableAndClear(), totalProjects); 318return builder.ToImmutableAndClear();
Snippets\AbstractSnippetService.cs (1)
48return arrayBuilder.ToImmutableAndClear();
SolutionExplorer\ISolutionExplorerSymbolTreeItemProvider.cs (1)
91return items.ToImmutableAndClear();
SpellCheck\AbstractSpellCheckSpanService.cs (1)
40return spans.ToImmutableAndClear();
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (2)
93return new(preMatches.ToImmutableAndClear(), postMatches.ToImmutableAndClear(), mayChangeSemantics);
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
194return validPotentialConversionTypes.ToImmutableAndClear();
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (1)
76return mutablePotentialConversionTypes.ToImmutableAndClear();
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
233return methodsAndArgumentToAdd.ToImmutableAndClear();
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.cs (1)
66return result.ToImmutableAndClear();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
243return names.ToImmutableAndClear();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
70return result.ToImmutableAndClear();
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
79return actions.ToImmutableAndClear();
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (1)
292return result.ToImmutableAndClear();
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (2)
56return result.ToImmutableAndClear(); 171return codeActions.ToImmutableAndClear();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
62return result.ToImmutableAndClear();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
144return implementedMembers.ToImmutableAndClear();
StackTraceExplorer\StackTraceAnalyzer.cs (1)
68return builder.ToImmutableAndClear();
SymbolSearch\Windows\SymbolSearchUpdateEngine.cs (1)
214return ValueTask.FromResult(result.ToImmutableAndClear());
TaskList\AbstractTaskListService.cs (1)
74return items.ToImmutableAndClear();
Wrapping\BinaryExpression\AbstractBinaryExpressionWrapper.cs (1)
100return result.ToImmutableAndClear();
Wrapping\BinaryExpression\BinaryExpressionCodeActionComputer.cs (1)
121return result.ToImmutableAndClear();
Wrapping\ChainedExpression\AbstractChainedExpressionWrapper.cs (1)
135return chunks.ToImmutableAndClear();
Wrapping\ChainedExpression\ChainedExpressionCodeActionComputer.cs (2)
171return result.ToImmutableAndClear(); 186return result.ToImmutableAndClear();
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (5)
141return result.ToImmutableAndClear(); 188return new WrappingGroup(isInlinable, unwrapActions.ToImmutableAndClear()); 222return result.ToImmutableAndClear(); 357return result.ToImmutableAndClear(); 468return result.ToImmutableAndClear();
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\ActiveStatementsDescription.cs (1)
154return activeStatements.ToImmutableAndClear();
Microsoft.CodeAnalysis.LanguageServer (2)
LanguageServerExportProviderBuilder.cs (1)
62assemblyPathsBuilder.ToImmutableAndClear(),
Testing\TestDiscoverer.cs (1)
108return matchedTests.ToImmutableAndClear();
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
768return result.ToImmutableAndClear();
Handler\CodeActions\CodeActionHelpers.cs (2)
172return nestedCodeActions.ToImmutableAndClear(); 343return codeActions.ToImmutableAndClear();
Handler\Configuration\DidChangeConfigurationNotificationHandler.cs (2)
151return builder.ToImmutableAndClear(); 184return builder.ToImmutableAndClear();
Handler\Diagnostics\DiagnosticSourceProviders\DiagnosticSourceManager.cs (2)
94var sources = sourcesBuilder.ToImmutableAndClear(); 159return diagnostics.ToImmutableAndClear();
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDocumentsAndProjectDiagnosticSourceProvider.cs (1)
62return result.ToImmutableAndClear();
Handler\MapCode\MapCodeHandler.cs (1)
138return builder.ToImmutableAndClear();
Handler\SpellCheck\WorkspaceSpellCheckHandler.cs (1)
59return result.ToImmutableAndClear();
Handler\Tasks\WorkspaceTaskDiagnosticSourceProvider.cs (1)
45return new(result.ToImmutableAndClear());
LspServices\LspServiceMetadataView.cs (1)
64HandlerDetails = handlerDetails.ToImmutableAndClear();
LspServices\LspServices.cs (1)
193return builder.ToImmutableAndClear();
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (1)
277return telemetryBuilder.ToImmutableAndClear();
Services\FindUsages\RemoteFindUsagesService.cs (1)
141var dehydratedReferences = dehydrated.ToImmutableAndClear();
Microsoft.CodeAnalysis.Workspaces (79)
Classification\IRemoteSemanticClassificationService.cs (1)
95classificationTypes.ToImmutableAndClear(),
CodeActions\CodeAction_Cleanup.cs (1)
153return documentIdsAndOptions.ToImmutableAndClear();
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (2)
175return changedDocuments.ToImmutableAndClear(); 188return result.ToImmutableAndClear();
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (1)
91return builder.ToImmutableAndClear();
Diagnostics\DiagnosticData.cs (1)
297return builder.ToImmutableAndClear();
Diagnostics\Extensions.cs (2)
391return diagnosticsBuilder.ToImmutableAndClear(); 419return diagnosticsBuilder.ToImmutableAndClear();
Diagnostics\GeneratorDiagnosticsPlaceholderAnalyzer.cs (1)
50return result.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)
34return 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)
97await progress.OnReferencesFoundAsync(rehydrated.ToImmutableAndClear(), cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_Declarations_CustomQueries.cs (1)
66return result.ToImmutableAndClear();
FindSymbols\SymbolFinder_Hierarchy.cs (1)
58return results.ToImmutableAndClear();
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
347return result.ToImmutableAndClear();
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
262checksum, nodes.ToImmutableAndClear(), spellChecker, inheritanceMap, receiverTypeNameToExtensionMethodMap);
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (2)
28return commentChanges.ToImmutableAndClear(); 87return commentChanges.ToImmutableAndClear();
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (5)
200unmergedDocumentChanges.ToImmutableAndClear(), 205return successfullyMergedChanges.ToImmutableAndClear(); 267return (NormalizeChanges(combinedChanges.ToImmutableAndClear()), mergeConflictResolutionSpans.ToImmutableAndClear()); 298return normalizedChanges.ToImmutableAndClear();
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
52return result.ToImmutableAndClear();
ReassignedVariable\AbstractReassignedVariableService.cs (1)
59return result.ToImmutableAndClear();
Recommendations\AbstractRecommendationServiceRunner.cs (4)
173return concreteTypes.ToImmutableAndClear(); 234return builder.ToImmutableAndClear(); 314return builder.ToImmutableAndClear(); 434return result.ToImmutableAndClear();
Remote\RemoteUtilities.cs (1)
51return builder.ToImmutableAndClear();
Rename\SymbolicRenameLocations.cs (1)
121return overloadsResult.ToImmutableAndClear();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
185return results.ToImmutableAndClear(); 230return results.ToImmutableAndClear();
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
142return result.ToImmutableAndClear();
Shared\Extensions\ITypeSymbolExtensions.cs (1)
124return builder.ToImmutableAndClear();
src\Dependencies\Collections\TemporaryArray`1.cs (1)
306return _builder.ToImmutableAndClear();
src\Dependencies\Threading\IAsyncEnumerableExtensions.cs (1)
23return result.ToImmutableAndClear();
src\Dependencies\Threading\ProducerConsumer.cs (1)
37await consumeItems(items.ToImmutableAndClear(), args, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
927var condDirectives = condDirectivesBuilder.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
277return changes.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
94return selectedMembers.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
35return result.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
261ImmutableArray<ISymbol>.CastUp(symbols.Builder.ToImmutableAndClear()),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
61return builder.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
439return results.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
173return result.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (1)
148return triviaList.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (2)
302return result.ToImmutableAndClear(); 332return result.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (1)
35return siblings.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)
46return mappedFilePathAndTextChange.ToImmutableAndClear();
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
834ImmutableArray<AnalyzerReference>.CastUp(initialReferenceList.ToImmutableAndClear()),
Workspace\Solution\SolutionCompilationState.cs (10)
652.WithDocumentStatesOfMultipleProjects<TDocumentState>([(projectId, updatedDocuments.ToImmutableAndClear())], GetUpdateDocumentsTranslationAction) 653.AddDocumentsToMultipleProjects<TDocumentState>(addedDocumentInfos.ToImmutableAndClear()) 654.RemoveDocumentsFromSingleProject<TDocumentState>(projectId, removedDocumentInfos.ToImmutableAndClear()); 818return (ordinaryDocuments.ToImmutableAndClear(), sourceGeneratedDocuments.ToImmutableAndClear()); 857return (projectId, newDocumentStates.ToImmutableAndClear()); 1023return (ordinaryDocuments.ToImmutableAndClear(), sourceGeneratedDocuments.ToImmutableAndClear()); 1619var newProjectStates = projectStateChanged ? newSortedProjectStatesBuilder.ToImmutableAndClear() : this.SolutionState.SortedProjectStates; 1911return this.WithDocumentTexts(changedDocuments.ToImmutableAndClear(), mode);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
784var documentsWithTrees = documentsWithTreesBuilder.ToImmutableAndClear(); 893return builder.ToImmutableAndClear();
Workspace\Solution\SolutionState.cs (2)
427var newProjectStates = newSortedProjectStatesBuilder.ToImmutableAndClear(); 952projectStates: statesBuilder.ToImmutableAndClear());
Workspace\Solution\SourceGeneratorIdentity.cs (1)
45return result.ToImmutableAndClear();
Workspace\Workspace.cs (1)
366return solution.WithDocumentContentsFrom(relatedDocumentIdsAndStates.ToImmutableAndClear());
Roslyn.VisualStudio.Next.UnitTests (1)
Services\ServiceHubServicesTests.cs (1)
391return result.ToImmutableAndClear();