10 references to ToImmutableAndClear
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
111var matchKindsArray = matchKinds.ToImmutableAndClear();
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (2)
77var matchKindsArray = matchKinds.ToImmutableAndClear(); 161return locations.ToImmutableAndClear();
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
291return new(this.ToImmutableAndClear());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (1)
25return result.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (1)
35return result.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
40return result.ToImmutableAndClear();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (3)
85_equivalenceVisitors = equivalenceVisitors.ToImmutableAndClear(); 86_getHashCodeVisitors = getHashCodeVisitors.ToImmutableAndClear(); 226return OneOrMany.Create(builder.ToImmutableAndClear());