49 references to ToImmutableAndClear
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\StringInfo.cs (1)
233contentSpans: result.ToImmutableAndClear());
StringCopyPaste\UnknownSourcePasteProcessor.cs (1)
107return textChanges.ToImmutableAndClear();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Structure\CommentStructureTests.cs (1)
31return result.ToImmutableAndClear();
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.NameGenerator.cs (2)
64return result.ToImmutableAndClear(); 96return result.ToImmutableAndClear();
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
166return diagnostics.ToImmutableAndClear();
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
123Implement, nestedActions.ToImmutableAndClear(), isInlinable: true));
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CSharpSemanticFacts.cs (2)
205return builder.ToImmutableAndClear(); 217return builder.ToImmutableAndClear();
CSharpTypeInferenceService.TypeInferrer.cs (1)
1515return result.ToImmutableAndClear();
OperatorGenerator.cs (1)
123return tokens.ToImmutableAndClear().ToSyntaxTokenList();
SyntaxTriviaListExtensions.cs (2)
58result.Add(currentLine.ToImmutableAndClear()); 62return result.ToImmutableAndClear();
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\DataProvider\CombinedOptionsProviderFactory.cs (1)
27return new CombinedProvider<T>(providers.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 (2)
Utilities\PatternMatcherTests.cs (2)
423return result.ToImmutableAndClear(); 479return matches.ToImmutableAndClear();
Microsoft.CodeAnalysis.Features (19)
AbstractAddExplicitCastCodeFixProvider.cs (1)
99CodeAction.Create(CodeFixesResources.Add_explicit_cast, actions.ToImmutableAndClear(), isInlinable: false),
AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
125return result.ToImmutableAndClear();
AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
82matchKinds.ToImmutableAndClear());
AbstractUseObjectInitializerDiagnosticAnalyzer.cs (1)
71context.RegisterSyntaxNodeAction(AnalyzeNode, matchKinds.ToImmutableAndClear());
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
162return scopes.ToImmutableAndClear();
EmbeddedLanguages\Classification\AbstractFallbackEmbeddedLanguageClassifier.cs (1)
28_supportedKinds = array.ToImmutableAndClear();
EmbeddedLanguages\EmbeddedLanguageInfo.cs (1)
34AllStringLiteralKinds = array.ToImmutableAndClear();
FindUsages\DefinitionItem.DetachedDefinitionItem.cs (1)
102converted.ToImmutableAndClear(),
FindUsages\IDefinitionsAndReferencesFactory.cs (1)
199return sourceLocations.ToImmutableAndClear();
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
121return result.ToImmutableAndClear();
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (2)
172return (actionsBuilder.ToImmutableAndClear(), actionsBuilderAllOccurrences.ToImmutableAndClear());
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (2)
199matchedSpans.ToImmutableAndClear(), 200allPatternMatches.ToImmutableAndClear());
NavigateTo\NavigateToSearcher.cs (3)
248result.Add(buffer.ToImmutableAndClear()); 258result.Add(buffer.ToImmutableAndClear()); 260return result.ToImmutableAndClear();
QuickInfo\CommonQuickInfoProvider.cs (1)
63return result.ToImmutableAndClear();
Shared\Naming\IdentifierNameParts.cs (1)
82return words.ToImmutableAndClear();
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.InFlightSolution.cs (1)
187return solutions.ToImmutableAndClear();
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Structure\VisualBasicStructureHelpers.vb (1)
43Return spans.ToImmutableAndClear()
Microsoft.CodeAnalysis.Workspaces (10)
CodeActions\CodeAction.cs (1)
287return result.ToImmutableAndClear();
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (2)
284return aliasSymbols.ToImmutableAndClear(); 909return result.ToImmutableAndClear();
FindSymbols\SymbolTree\SymbolTreeInfo.cs (2)
216return results.ToImmutableAndClear(); 496return builder.ToImmutableAndClear();
FindSymbols\SyntaxTree\SyntaxTreeIndex_Forwarders.cs (1)
57return result.ToImmutableAndClear();
IntervalTree`1.cs (1)
152return result.ToImmutableAndClear();
Options\GlobalOptionService.cs (1)
141return values.ToImmutableAndClear();
Workspace\Solution\SolutionState.CompilationTracker.cs (2)
939var generatedDocuments = new TextDocumentStates<SourceGeneratedDocumentState>(generatedDocumentsBuilder.ToImmutableAndClear()); 1240return Checksum.Create(tempChecksumArray.ToImmutableAndClear());