23 references to ToImmutableAndClear
Microsoft.CodeAnalysis.Workspaces (23)
CodeActions\CodeAction.cs (1)
442
return result.
ToImmutableAndClear
();
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (4)
280
return aliasSymbols.
ToImmutableAndClear
();
764
return additionalProperties.
ToImmutableAndClear
();
791
return additionalProperties.
ToImmutableAndClear
();
880
return result.
ToImmutableAndClear
();
FindSymbols\SymbolTree\SymbolTreeInfo.cs (3)
186
return result.
ToImmutableAndClear
();
241
return results.
ToImmutableAndClear
();
520
return builder.
ToImmutableAndClear
();
FindSymbols\SyntaxTree\SyntaxTreeIndex_Forwarders.cs (1)
68
return result.
ToImmutableAndClear
();
Options\GlobalOptionService.cs (1)
157
return values.
ToImmutableAndClear
();
PatternMatching\PatternMatcher.cs (1)
546
? new NormalizedTextSpanCollection(matchSpans.
ToImmutableAndClear
()).ToImmutableArray()
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
291
return new(this.
ToImmutableAndClear
());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (1)
25
return result.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (1)
35
return result.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
40
return result.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (3)
85
_equivalenceVisitors = equivalenceVisitors.
ToImmutableAndClear
();
86
_getHashCodeVisitors = getHashCodeVisitors.
ToImmutableAndClear
();
226
return OneOrMany.Create(builder.
ToImmutableAndClear
());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
215
return statements.
ToImmutableAndClear
();
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (2)
221
var newGeneratedDocuments = new TextDocumentStates<SourceGeneratedDocumentState>(generatedDocumentsBuilder.
ToImmutableAndClear
());
363
var newGeneratedDocuments = new TextDocumentStates<SourceGeneratedDocumentState>(generatedDocumentsBuilder.
ToImmutableAndClear
());
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
100
return new(generators.
ToImmutableAndClear
(), generatorToAnalyzerReference.ToFrozenDictionary());
Workspace\Solution\SolutionState.cs (1)
1184
return result.
ToImmutableAndClear
();