13 references to ToImmutableAndClear
Microsoft.CodeAnalysis.CodeStyle (13)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (2)
93
return new(preMatches.
ToImmutableAndClear
(), postMatches.
ToImmutableAndClear
());
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
303
return _builder.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICollectionExtensions.cs (1)
24
return result.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
436
return results.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
168
return result.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
927
var condDirectives = condDirectivesBuilder.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
278
return changes.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
95
return selectedMembers.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
36
return result.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
62
return builder.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
42
return result.
ToImmutableAndClear
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
54
await consumeItems(items.
ToImmutableAndClear
(), args, cancellationToken).ConfigureAwait(false);