80 references to PooledDisposer
Microsoft.CodeAnalysis.CodeStyle (80)
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
43
using
var
_ = PooledStringBuilder.GetInstance(out var sb);
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (15)
157
using
var
_1 = PooledDictionary<string, List<(SyntaxTrivia pragma, bool isDisable)>>.GetInstance(out var idToPragmasMap);
158
using
var
_2 = ArrayBuilder<(SyntaxTrivia pragma, ImmutableArray<string> ids, bool isDisable)>.GetInstance(out var sortedPragmasWithIds);
159
using
var
_3 = PooledDictionary<SyntaxTrivia, bool>.GetInstance(out var pragmasToIsUsedMap);
160
using
var
_4 = PooledHashSet<string>.GetInstance(out var compilerDiagnosticIds);
166
using
var
_5 = PooledDictionary<string, List<SyntaxNode>>.GetInstance(out var idToSuppressMessageAttributesMap);
167
using
var
_6 = PooledDictionary<SyntaxNode, bool>.GetInstance(out var suppressMessageAttributesToIsUsedMap);
179
using
var
_8 = PooledHashSet<string>.GetInstance(out var idsToAnalyzeBuilder);
239
using
var
_ = ArrayBuilder<string>.GetInstance(out var idsBuilder);
370
using
var
_1 = ArrayBuilder<string>.GetInstance(out var idBuilder);
371
using
var
_2 = ArrayBuilder<string>.GetInstance(out var categoryBuilder);
398
using
var
_1 = ArrayBuilder<DiagnosticAnalyzer>.GetInstance(out var analyzersBuilder);
399
using
var
_2 = ArrayBuilder<string>.GetInstance(out var unhandledIds);
450
using
var
_3 = ArrayBuilder<Diagnostic>.GetInstance(out var reportedDiagnostics);
616
using
var
_ = ArrayBuilder<Diagnostic>.GetInstance(out var diagnosticsBuilder);
751
using
var
_ = PooledHashSet<ISymbol>.GetInstance(out var processedPartialSymbols);
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
58
using
var
_ = ArrayBuilder<(string name, IOperation value)>.GetInstance(out var builder);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (3)
520
using
var
_2 = ArrayBuilder<string>.GetInstance(out var debuggerDisplayAttributeArguments);
670
using
var
_ = ArrayBuilder<TDocumentationCommentTriviaSyntax>.GetInstance(out var documentationComments);
699
using
var
_ = ArrayBuilder<TTypeDeclarationSyntax>.GetInstance(out var stack);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
470
using
var
_ = PooledHashSet<SymbolUsageResult>.GetInstance(out var symbolUsageResultsBuilder);
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
45
using
var
_ = ArrayBuilder<TextSpan>.GetInstance(out var unnecessarySpans);
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
100
using
var
_ = ArrayBuilder<IMethodSymbol>.GetInstance(out var linqMethodSymbolsBuilder);
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (4)
268
using
var
_ = PooledHashSet<IFieldSymbol>.GetInstance(out var set);
284
using
var
_ = PooledHashSet<IFieldSymbol>.GetInstance(out var set);
540
using
var
_1 = PooledHashSet<IFieldSymbol>.GetInstance(out var reportedFields);
541
using
var
_2 = PooledHashSet<IPropertySymbol>.GetInstance(out var reportedProperties);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (2)
88
using
var
_1 = ArrayBuilder<TMatch>.GetInstance(out var preMatches);
89
using
var
_2 = ArrayBuilder<TMatch>.GetInstance(out var postMatches);
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (1)
120
using
var
_1 = PooledHashSet<ILocalSymbol>.GetInstance(out var symbolsDeclaredInConditional);
src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
74
using
var
_1 = PooledHashSet<string>.GetInstance(out var seenNames);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher_TryParseSection.cs (2)
32
using
var
_0 = PooledStringBuilder.GetInstance(out var sb);
55
using
var
_1 = ArrayBuilder<(int minValue, int maxValue)>.GetInstance(out var numberRangePairs);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (2)
155
using
var
_ = PooledStringBuilder.GetInstance(out var sb);
167
using
var
_ = PooledStringBuilder.GetInstance(out var sb);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (2)
99
using
var
_ = PooledStringBuilder.GetInstance(out var sb);
106
using
var
_ = PooledStringBuilder.GetInstance(out var sb);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (1)
186
using
var
_ = PooledStringBuilder.GetInstance(out var builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICollectionExtensions.cs (1)
16
using
var
_ = ArrayBuilder<T>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (3)
407
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var results);
450
using
var
_ = PooledHashSet<string>.GetInstance(out var seenNames);
533
using
var
_ = PooledDictionary<ISymbol, int>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamespaceOrTypeSymbolExtensions.cs (1)
93
using
var
_ = ArrayBuilder<INamespaceOrTypeSymbol>.GetInstance(out var stack);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
151
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
112
using
var
_ = ArrayBuilder<SyntaxNode>.GetInstance(out var stack);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (4)
183
using
var
_ = PooledHashSet<SyntaxNode>.GetInstance(out var set);
214
using
var
_1 = ArrayBuilder<SyntaxNode>.GetInstance(out var commonAncestorsStack);
215
using
var
_2 = PooledHashSet<SyntaxNode>.GetInstance(out var commonAncestorsSet);
915
using
var
_ = ArrayBuilder<TDirectiveTriviaSyntax>.GetInstance(out var condDirectivesBuilder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
188
using
var
_ = PooledHashSet<ILocalSymbol>.GetInstance(out var builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
127
using
var
_ = ArrayBuilder<SuppressOperation>.GetInstance(out var result);
150
using
var
_ = ArrayBuilder<SuppressOperation>.GetInstance(out var buffer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (1)
163
using
var
_ = ArrayBuilder<SuppressOperation>.GetInstance(out var suppressOperationScratch);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (3)
240
using
var
_ = ArrayBuilder<SyntaxTrivia>.GetInstance(out var triviaList);
268
using
var
_ = ArrayBuilder<TextChange>.GetInstance(out var changes);
629
using
var
_ = ArrayBuilder<SyntaxTrivia>.GetInstance(out var lineBreaks);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\TriviaHelpers.cs (1)
19
using
var
_ = ArrayBuilder<SyntaxTrivia>.GetInstance(out var builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (4)
21
var
_ = ArrayBuilder<(NamingRule rule, int priority, string title)>.GetInstance(out var namingRules);
62
using
var
_1 = ArrayBuilder<SymbolSpecification>.GetInstance(out var symbolSpecifications);
63
using
var
_2 = ArrayBuilder<NamingStyle>.GetInstance(out var namingStyles);
64
using
var
_3 = ArrayBuilder<SerializableNamingRule>.GetInstance(out var serializableRules);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (2)
213
using
var
_ = ArrayBuilder<string>.GetInstance(out var violations);
255
using
var
_ = ArrayBuilder<string>.GetInstance(out var violations);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\ArrayBuilder.cs (3)
9
public static
PooledDisposer
<ArrayBuilder<T>> GetInstance(out ArrayBuilder<T> instance)
15
public static
PooledDisposer
<ArrayBuilder<T>> GetInstance(int capacity, out ArrayBuilder<T> instance)
21
public static
PooledDisposer
<ArrayBuilder<T>> GetInstance(int capacity, T fillWithValue, out ArrayBuilder<T> instance)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledDictionary.cs (1)
9
public static
PooledDisposer
<PooledDictionary<K, V>> GetInstance(out PooledDictionary<K, V> instance)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledHashSet.cs (1)
11
public static
PooledDisposer
<PooledHashSet<T>> GetInstance(out PooledHashSet<T> instance)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledStringBuilder.cs (1)
11
public static
PooledDisposer
<PooledStringBuilder> GetInstance(out StringBuilder instance)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
88
using
var
_ = ArrayBuilder<SyntaxNode>.GetInstance(out var selectedMembers);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
25
using
var
_ = ArrayBuilder<Location>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
55
using
var
_ = ArrayBuilder<string>.GetInstance(out var builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (3)
26
using
var
_1 = ArrayBuilder<string?>.GetInstance(out var friendlyNames);
27
using
var
_2 = ArrayBuilder<Location>.GetInstance(out var locations);
41
using
var
_3 = ArrayBuilder<ISymbol>.GetInstance(out var elementTypes);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
38
using
var
_ = ArrayBuilder<T>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (1)
112
using
var
_ = PooledHashSet<U>.GetInstance(out var set);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
46
using
var
_ = ArrayBuilder<TItem>.GetInstance(out var items);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (2)
94
using
var
_ = PooledHashSet<T>.GetInstance(out var set);
124
using
var
_ = PooledHashSet<T>.GetInstance(out var set);