35 references to ToImmutableAndClear
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\CrefCompletionProvider.cs (2)
211
return result.
ToImmutableAndClear
();
228
return result.
ToImmutableAndClear
();
CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
195
memberAccessExpressions = references.
ToImmutableAndClear
();
Microsoft.CodeAnalysis.Features (11)
AbstractAddParameterCodeFixProvider.cs (1)
278
return builder.
ToImmutableAndClear
();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (1)
169
return builder.
ToImmutableAndClear
();
CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
45
return nonEmptyNodes.
ToImmutableAndClear
();
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
408
return builder.
ToImmutableAndClear
();
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (1)
524
return receiverTypeNamesBuilder.
ToImmutableAndClear
();
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
301
return builder.
ToImmutableAndClear
();
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
273
list.Add(new DocumentHighlights(kvp.Key, spans.
ToImmutableAndClear
()));
276
return list.
ToImmutableAndClear
();
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
2202
lineEdits.Add(new SequencePointUpdates(currentDocumentPath, documentLineEdits.
ToImmutableAndClear
()));
EmbeddedLanguages\StackFrame\StackFrameParser.cs (1)
514
builder.Add(new StackFrameArrayRankSpecifier(openBracket, closeBracket, commaBuilder.
ToImmutableAndClear
()));
Wrapping\ChainedExpression\AbstractChainedExpressionWrapper.cs (1)
237
return result.
ToImmutableAndClear
();
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Features\Diagnostics\DocumentAnalysisExecutor.cs (1)
392
return builder.
ToImmutableAndClear
();
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (3)
163
actions: unifiedNestedActions.
ToImmutableAndClear
(),
466
return orderedRefactorings.
ToImmutableAndClear
();
561
actions: nestedActions.
ToImmutableAndClear
(),
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\AssetProvider.cs (1)
66
return list.
ToImmutableAndClear
();
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
310
return classifiedSpans.
ToImmutableAndClear
();
Microsoft.CodeAnalysis.Workspaces (15)
Diagnostics\DiagnosticData.cs (1)
300
return builder.
ToImmutableAndClear
();
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
321
return result.
ToImmutableAndClear
();
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
250
var nodeArray = nodes.
ToImmutableAndClear
();
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (1)
232
inheritanceNames.
ToImmutableAndClear
(),
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.DeclarationInfo.cs (1)
37
return new DeclarationInfo(builder.
ToImmutableAndClear
());
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.ExtensionMethodInfo.cs (1)
81
receiverTypeNameToExtensionMethodMapBuilder[typeName] = builder.
ToImmutableAndClear
();
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs\ImmutableArrayExtensions.cs (1)
36
return result.
ToImmutableAndClear
();
NameGenerator.cs (1)
77
return result.
ToImmutableAndClear
();
ObjectWriterExtensions.cs (1)
32
return builder.
ToImmutableAndClear
();
Recommendations\AbstractRecommendationServiceRunner.cs (1)
232
return builder.
ToImmutableAndClear
();
Rename\IRemoteRenamerService.cs (1)
215
return locBuilder.
ToImmutableAndClear
();
Shared\Extensions\IParameterSymbolExtensions.cs (1)
52
return result.
ToImmutableAndClear
();
SpecializedTasks.cs (1)
97
return result.
ToImmutableAndClear
();
TemporaryArray`1.cs (1)
231
return _builder.
ToImmutableAndClear
();
Workspace\Solution\SolutionState.CompilationTracker.cs (1)
1085
return builder.
ToImmutableAndClear
();