10 references to ToImmutableAndClear
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
111
var matchKindsArray = matchKinds.
ToImmutableAndClear
();
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (2)
77
var matchKindsArray = matchKinds.
ToImmutableAndClear
();
161
return locations.
ToImmutableAndClear
();
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
());