222 references to PooledDisposer
Microsoft.CodeAnalysis.Workspaces (222)
Classification\IRemoteSemanticClassificationService.cs (2)
74
using
var
_1 = PooledDictionary<string, int>.GetInstance(out var classificationTypeToId);
75
using
var
_2 = ArrayBuilder<string>.GetInstance(out var classificationTypes);
CodeActions\CodeAction_Cleanup.cs (1)
89
using
var
_ = ArrayBuilder<(DocumentId documentId, CodeCleanupOptions options)>.GetInstance(documentIds.Length, out var documentIdsAndOptions);
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (6)
145
using
var
_1 = ArrayBuilder<Task<ImmutableArray<Document>>>.GetInstance(out var tasks);
154
using
var
_2 = ArrayBuilder<CodeAction>.GetInstance(out var codeActions);
163
using
var
_3 = ArrayBuilder<Document>.GetInstance(out var changedDocuments);
185
using
var
_4 = ArrayBuilder<Document>.GetInstance(out var result);
207
using
var
_ = ArrayBuilder<Task>.GetInstance(out var tasks);
235
using
var
_ = ArrayBuilder<CodeAction>.GetInstance(out var builder);
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (1)
86
using
var
_2 = ArrayBuilder<Diagnostic>.GetInstance(out var builder);
Diagnostics\DiagnosticAnalysisResult.cs (1)
224
using
var
_ = ArrayBuilder<DiagnosticData>.GetInstance(out var builder);
Diagnostics\DiagnosticData.cs (1)
261
using
var
_ = ArrayBuilder<DiagnosticDataLocation>.GetInstance(diagnostic.AdditionalLocations.Count, out var builder);
Diagnostics\Extensions.cs (2)
392
using
var
_ = ArrayBuilder<Diagnostic>.GetInstance(out var diagnosticsBuilder);
416
using
var
_ = ArrayBuilder<Diagnostic>.GetInstance(out var diagnosticsBuilder);
Diagnostics\HostDiagnosticAnalyzers.cs (1)
248
using
var
_ = ArrayBuilder<KeyValuePair<object, AnalyzerReference>>.GetInstance(source.Count, out var builder);
Diagnostics\SkippedHostAnalyzersInfo.cs (3)
53
using
var
_1 = PooledHashSet<object>.GetInstance(out var projectAnalyzerIds);
54
using
var
_2 = PooledHashSet<string>.GetInstance(out var projectAnalyzerDiagnosticIds);
55
using
var
_3 = PooledHashSet<string>.GetInstance(out var projectSuppressedDiagnosticIds);
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (4)
62
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var result);
82
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var buffer);
97
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var buffer);
117
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var buffer);
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (2)
180
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var result);
193
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var result);
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
143
using
var
_ = ArrayBuilder<SyntaxToken>.GetInstance(out var matches);
FindSymbols\FindReferences\BaseTypeFinder.cs (1)
20
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var results);
FindSymbols\FindReferences\DependentProjectsFinder.cs (5)
78
using
var
_ = PooledHashSet<Project>.GetInstance(out var result);
168
using
var
_ = PooledHashSet<(Project, bool hasInternalsAccess)>.GetInstance(out var dependentProjects);
196
using
var
_1 = PooledDictionary<ProjectId, List<ProjectId>>.GetInstance(out var projectIdsToReferencingSubmissionIds);
225
using
var
_2 = ArrayBuilder<ProjectId>.GetInstance(out var projectIdsToProcess);
329
using
var
_ = ArrayBuilder<(PortableExecutableReference reference, MetadataId metadataId)>.GetInstance(out var uncomputedReferences);
FindSymbols\FindReferences\DependentTypeFinder.cs (11)
106
using
var
_1 = GetSymbolSet(out var result);
110
using
var
_2 = GetSymbolSet(out var currentMetadataTypes);
113
using
var
_3 = GetSymbolSet(out var currentSourceAndMetadataTypes);
118
using
var
_4 = PooledHashSet<PortableExecutableReference>.GetInstance(out var seenPEReferences);
152
using
var
_ = GetSymbolSet(out var tempBuffer);
171
using
var
_ = GetSymbolSet(out var tempBuffer);
199
using
var
_1 = GetSymbolSet(out var typesToSearchFor);
200
using
var
_2 = GetSymbolSet(out var tempBuffer);
300
using
var
_1 = GetSymbolSet(out var typesToSearchFor);
301
using
var
_2 = GetSymbolSet(out var tempBuffer);
562
public static
PooledDisposer
<PooledHashSet<INamedTypeSymbol>> GetSymbolSet(out SymbolSet instance)
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (1)
84
using
var
_ = ArrayBuilder<INamedTypeSymbol>.GetInstance(out var builder);
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (1)
109
using
var
_ = ArrayBuilder<SyntaxToken>.GetInstance(out var tokens);
FindSymbols\FindReferences\Finders\AbstractMethodOrPropertyOrEventSymbolReferenceFinder.cs (1)
36
using
var
_ = ArrayBuilder<IMethodSymbol>.GetInstance(out var result);
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (1)
49
using
var
_ = PooledHashSet<Document>.GetInstance(out var result);
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (2)
33
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var result);
115
using
var
_ = ArrayBuilder<FinderLocation>.GetInstance(out var initialReferences);
FindSymbols\FindReferences\Finders\NamespaceSymbolReferenceFinder.cs (1)
68
using
var
_ = ArrayBuilder<FinderLocation>.GetInstance(out var initialReferences);
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
62
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var symbols);
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (1)
36
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var result);
FindSymbols\FindReferences\FindReferenceCache.cs (3)
155
using
var
_ = ArrayBuilder<SyntaxToken>.GetInstance(out var result);
193
using
var
_ = ArrayBuilder<SyntaxToken>.GetInstance(out var result);
225
using
var
_ = ArrayBuilder<SyntaxToken>.GetInstance(out var initializers);
FindSymbols\FindReferences\FindReferencesSearchEngine.BidirectionalSymbolSet.cs (1)
50
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var workQueue);
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (3)
219
using
var
_1 = PooledDictionary<ISymbol, PooledHashSet<string>>.GetInstance(out var symbolToGlobalAliases);
220
using
var
_2 = PooledDictionary<Document, Dictionary<ISymbol, SymbolGroup>>.GetInstance(out var documentToSymbolsWithin);
224
using
var
_3 = PooledHashSet<Document>.GetInstance(out var foundDocuments);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (2)
151
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var workQueue);
171
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var workQueue);
FindSymbols\FindReferences\FindReferencesSearchEngine.UnidirectionalSymbolSet.cs (1)
48
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var workQueue);
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (2)
77
using
var
_ = PooledDictionary<ISymbol, PooledHashSet<string>>.GetInstance(out var symbolToGlobalAliases);
167
using
var
_ = ArrayBuilder<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)>.GetInstance(out var result);
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (2)
46
using
var
_ = PooledDictionary<SerializableSymbolAndProjectId, ISymbol>.GetInstance(out var map);
72
using
var
_ = ArrayBuilder<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)>.GetInstance(references.Length, out var rehydrated);
FindSymbols\SymbolFinder_Declarations_CustomQueries.cs (1)
58
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var result);
FindSymbols\SymbolFinder_Helpers.cs (1)
103
using
var
_ = PooledDictionary<INamedTypeSymbol, INamedTypeSymbol>.GetInstance(out var equivalentTypesWithDifferingAssemblies);
FindSymbols\SymbolFinder_Hierarchy.cs (2)
137
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var builder);
358
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var results);
FindSymbols\SymbolTree\SymbolTreeInfo.cs (3)
305
using
var
_1 = ArrayBuilder<int>.GetInstance(unsortedNodes.Length, out var tmp);
316
using
var
_2 = ArrayBuilder<int>.GetInstance(unsortedNodes.Length, out var ranking);
321
using
var
_3 = ArrayBuilder<Node>.GetInstance(unsortedNodes.Length, out var result);
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
200
using
var
_ = ArrayBuilder<Node>.GetInstance(nodeCount, out var nodes);
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (3)
104
using
var
_ = ArrayBuilder<Checksum>.GetInstance(out var allChecksums);
130
using
var
_ = ArrayBuilder<BuilderNode>.GetInstance(out var unsortedBuilderNodes);
161
using
var
_ = PooledHashSet<string>.GetInstance(out var seenNames);
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
145
using
var
_ = ArrayBuilder<Task>.GetInstance(out var tasks);
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Create.cs (2)
20
using
var
_1 = ArrayBuilder<DeclaredSymbolInfo>.GetInstance(out var declaredSymbolInfos);
21
using
var
_2 = PooledDictionary<string, ArrayBuilder<int>>.GetInstance(out var extensionMethodInfo);
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (1)
162
using
var
_1 = PooledDictionary<string, string?>.GetInstance(out var aliases);
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (1)
23
using
var
_ = ArrayBuilder<TextChange>.GetInstance(out var commentChanges);
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (8)
23
using
var
_1 = PooledDictionary<string, DocumentAndHashBuilder>.GetInstance(out var filePathToNewDocumentsAndHashes);
49
using
var
_ = ArrayBuilder<LinkedFileMergeResult>.GetInstance(
108
using
var
_ = ArrayBuilder<UnmergedDocumentChanges>.GetInstance(out var unmergedChanges);
144
using
var
_1 = ArrayBuilder<TextChange>.GetInstance(out var unmergedDocumentChanges);
145
using
var
_2 = ArrayBuilder<TextChange>.GetInstance(out var successfullyMergedChanges);
216
using
var
_1 = ArrayBuilder<TextChange>.GetInstance(out var combinedChanges);
217
using
var
_2 = ArrayBuilder<TextSpan>.GetInstance(out var mergeConflictResolutionSpans);
277
using
var
_ = ArrayBuilder<TextChange>.GetInstance(changes.Length, out var normalizedChanges);
Log\KeyValueLogMessage.cs (1)
91
using
var
_ = PooledStringBuilder.GetInstance(out var builder);
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
61
using
var
_ = ArrayBuilder<SyntaxNode>.GetInstance(out var stack);
Options\GlobalOptionService.cs (1)
191
using
var
_ = ArrayBuilder<(OptionKey2, object?)>.GetInstance(options.Count, out var changedOptions);
ReassignedVariable\AbstractReassignedVariableService.cs (5)
48
using
var
_1 = PooledDictionary<ISymbol, bool>.GetInstance(out var symbolToIsReassigned);
49
using
var
_2 = ArrayBuilder<TextSpan>.GetInstance(out var result);
50
using
var
_3 = PooledDictionary<SyntaxTree, SemanticModel>.GetInstance(out var syntaxTreeToModel);
63
using
var
_ = ArrayBuilder<SyntaxNode>.GetInstance(out var stack);
298
using
var
_ = ArrayBuilder<SyntaxNode>.GetInstance(out var stack);
Recommendations\AbstractRecommendationServiceRunner.cs (4)
147
using
var
_ = ArrayBuilder<ITypeSymbol>.GetInstance(out var concreteTypes);
194
using
var
_ = ArrayBuilder<ITypeSymbol>.GetInstance(out var builder);
296
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var builder);
403
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(containerMembers.Length, out var result);
Remote\RemoteUtilities.cs (1)
27
using
var
_ = ArrayBuilder<(DocumentId, ImmutableArray<TextChange>)>.GetInstance(out var builder);
Rename\Renamer.cs (1)
115
using
var
_ = ArrayBuilder<RenameDocumentAction>.GetInstance(out var actions);
Rename\SymbolicRenameLocations.cs (4)
82
using
var
_0 = ArrayBuilder<RenameLocation>.GetInstance(out var mergedLocations);
83
using
var
_1 = ArrayBuilder<ISymbol>.GetInstance(out var mergedReferencedSymbols);
84
using
var
_2 = ArrayBuilder<ReferenceLocation>.GetInstance(out var mergedImplicitLocations);
117
using
var
_ = ArrayBuilder<SearchResult>.GetInstance(out var overloadsResult);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
332
using
var
_1 = ArrayBuilder<RenameLocation>.GetInstance(out var stringLocations);
333
using
var
_2 = ArrayBuilder<RenameLocation>.GetInstance(out var commentLocations);
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
128
using
var
_ = ArrayBuilder<ReferencedSymbol>.GetInstance(out var result);
Shared\Extensions\ILanguageMetadataExtensions.cs (1)
47
using
var
_ = PooledDictionary<string, ArrayBuilder<Lazy<TInterface, TMetadata>>>.GetInstance(out var map);
Shared\Extensions\INamespaceSymbolExtensions.cs (3)
61
using
var
_ = ArrayBuilder<INamespaceOrTypeSymbol>.GetInstance(out var stack);
85
using
var
_ = ArrayBuilder<INamespaceSymbol>.GetInstance(out var stack);
113
using
var
_ = ArrayBuilder<INamespaceSymbol>.GetInstance(out var stack);
Shared\Extensions\ITypeSymbolExtensions.cs (1)
42
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var builder);
Shared\Utilities\AsyncBatchingWorkQueue`2.cs (1)
143
using
var
_ = ArrayBuilder<TItem>.GetInstance(out var items);
Shared\Utilities\DocumentationComment.cs (1)
213
using
var
_ = PooledStringBuilder.GetInstance(out var builder);
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)
96
using
var
_ = PooledStringBuilder.GetInstance(out var sb);
103
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\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)
189
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\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);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
65
using
var
_ = ArrayBuilder<(TDiagnosticNode diagnosticNode, Diagnostic diagnostic)>.GetInstance(out var originalNodes);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
552
using
var
_ = ArrayBuilder<SyntaxToken>.GetInstance(out var updatedModifiersList);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (1)
124
using
var
_ = ArrayBuilder<SyntaxTrivia>.GetInstance(out var triviaList);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (4)
77
using
var
_ = PooledHashSet<INamespaceSymbol>.GetInstance(out var conflicts);
113
using
var
_1 = ArrayBuilder<SyntaxNode>.GetInstance(out var importsToAdd);
114
using
var
_2 = ArrayBuilder<SyntaxNode>.GetInstance(out var nodesToSimplify);
174
using
var
_ = PooledDictionary<INamespaceSymbol, SyntaxNode>.GetInstance(out var importToSyntax);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (2)
266
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var result);
288
using
var
_ = ArrayBuilder<ISymbol>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (2)
141
using
var
_2 = ArrayBuilder<SyntaxNode>.GetInstance(out var expressions);
285
using
var
_ = ArrayBuilder<SyntaxNode>.GetInstance(out var expressions);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
299
using
var
_ = ArrayBuilder<SyntaxNode>.GetInstance(out var importDeclarations);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (3)
46
using
var
isFixedDisposer = ArrayBuilder<bool>.GetInstance(names.Length, fillWithValue: false, out var isFixed);
66
using
var
_1 = ArrayBuilder<bool>.GetInstance(names.Length, out var isFixedBuilder);
67
using
var
_2 = ArrayBuilder<string>.GetInstance(names.Length, out var result);
TaskList\TaskListItemDescriptor.cs (1)
32
using
var
_ = ArrayBuilder<TaskListItemDescriptor>.GetInstance(out var result);
Workspace\Host\DocumentService\AbstractSpanMappingService.cs (1)
35
using
var
_ = ArrayBuilder<(string, TextChange)>.GetInstance(out var mappedFilePathAndTextChange);
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (1)
124
using
var
_ = ArrayBuilder<Checksum>.GetInstance(out var checksumsToRemove);
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (1)
75
using
var
_ = PooledHashSet<string>.GetInstance(out var referenceDirectories);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
566
using
var
_ = ArrayBuilder<(DocumentId documentId, SourceTextContainer textContainer)>.GetInstance(out var documentsToOpen);
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
782
using
var
_ = ArrayBuilder<AnalyzerFileReference>.GetInstance(out var initialReferenceList);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
158
using
var
_ = ArrayBuilder<ProjectInfo>.GetInstance(out var projectInfos);
Workspace\Solution\Solution.cs (2)
362
using
var
_ = ArrayBuilder<ProjectInfo>.GetInstance(1, out var projectInfos);
374
using
var
_ = ArrayBuilder<ProjectId>.GetInstance(1, out var projectIds);
Workspace\Solution\SolutionCompilationState.cs (11)
330
using
var
_ = PooledHashSet<ProjectId>.GetInstance(out var dependentProjects);
368
using
var
_ = PooledHashSet<ProjectId>.GetInstance(out var dependentProjects);
604
using
var
_1 = ArrayBuilder<DocumentInfo>.GetInstance(out var addedDocumentInfos);
605
using
var
_2 = ArrayBuilder<DocumentId>.GetInstance(out var removedDocumentInfos);
619
using
var
_3 = ArrayBuilder<TDocumentState>.GetInstance(out var updatedDocuments);
810
using
var
_ = ArrayBuilder<TDocumentState>.GetInstance(out var newDocumentStates);
1328
using
var
_ = ArrayBuilder<SourceGeneratedDocumentState>.GetInstance(documents.Length, out var documentStates);
1571
using
var
_ = ArrayBuilder<DocumentState>.GetInstance(allDocumentIds.Length, out var documentStates);
1601
using
var
_ = PooledDictionary<ProjectId, ArrayBuilder<DocumentState>>.GetInstance(out var missingDocumentStates);
1683
using
var
_ = ArrayBuilder<T>.GetInstance(out var removedDocumentStates);
1761
using
var
_ = ArrayBuilder<(DocumentId, SourceText)>.GetInstance(out var changedDocuments);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (4)
765
using
var
_1 = ArrayBuilder<DocumentState>.GetInstance(out var documentsWithTreesBuilder);
784
using
var
_ = ArrayBuilder<SyntaxTree>.GetInstance(documentsWithTrees.Length, out var alreadyParsedTrees);
873
using
var
_ = ArrayBuilder<Diagnostic>.GetInstance(capacity: driverRunResult.Diagnostics.Length, out var builder);
1108
using
var
_ = ArrayBuilder<Checksum>.GetInstance(out var tempChecksumArray);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (3)
117
using
var
_1 = ArrayBuilder<DocumentId>.GetInstance(out var documentsToAddOrUpdate);
118
using
var
_2 = PooledDictionary<DocumentId, int>.GetInstance(out var documentIdToIndex);
253
using
var
_ = ArrayBuilder<SyntaxTree>.GetInstance(out var treesToRemove);
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (1)
74
using
var
_ = ArrayBuilder<SecondaryReferencedSymbol>.GetInstance(
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (1)
177
using
var
_ = PooledDictionary<DocumentState, int>.GetInstance(out var documentToIndex);
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
89
using
var
_ = PooledDictionary<ISourceGenerator, AnalyzerReference>.GetInstance(out var generatorToAnalyzerReference);
Workspace\Solution\SolutionState.cs (4)
332
using
var
_ = ArrayBuilder<ProjectState>.GetInstance(projectInfos.Count, out var projectStates);
375
using
var
_1 = ArrayBuilder<ProjectId>.GetInstance(ProjectIds.Count + projectStates.Count, out var newProjectIdsBuilder);
376
using
var
_2 = PooledHashSet<ProjectId>.GetInstance(out var addedProjectIds);
437
using
var
_ = PooledHashSet<ProjectId>.GetInstance(out var projectIdsSet);
Workspace\Solution\SolutionState_Checksum.cs (1)
117
using
var
_ = ArrayBuilder<Task<ProjectStateChecksums>>.GetInstance(out var projectChecksumTasks);
Workspace\Solution\SourceGeneratedDocumentIdentity.cs (1)
52
using
var
_ = ArrayBuilder<byte>.GetInstance(capacity: (assemblyNameToHash.Length + 1 + generatorIdentity.TypeName.Length + 1 + hintName.Length) * 2 + projectIdBytes.Length, out var hashInput);
Workspace\Solution\SourceGeneratorExecutionVersion.cs (2)
108
using
var
_ = ArrayBuilder<Checksum>.GetInstance(this.Map.Count * 2, out var checksums);
121
using
var
_ = PooledStringBuilder.GetInstance(out var builder);
Workspace\Solution\SourceGeneratorIdentity.cs (1)
42
using
var
_ = ArrayBuilder<SourceGeneratorIdentity>.GetInstance(out var result);
Workspace\Solution\TextDocumentStates.cs (1)
158
using
var
_ = PooledHashSet<DocumentId>.GetInstance(out var set);
Workspace\Workspace.cs (7)
287
using
var
_1 = PooledHashSet<DocumentId>.GetInstance(out var changedDocumentIds);
288
using
var
_2 = ArrayBuilder<DocumentId>.GetInstance(out var addedDocumentIds);
323
using
var
_ = ArrayBuilder<(DocumentId, DocumentState)>.GetInstance(out var relatedDocumentIdsAndStates);
364
using
var
_ = PooledDictionary<DocumentId, DocumentState>.GetInstance(out var relatedDocumentIdsAndStates);
704
using
var
_ = ArrayBuilder<ProjectInfo>.GetInstance(projects.Count, out var builder);
1581
using
var
_1 = PooledHashSet<DocumentId>.GetInstance(out var infoChangedDocumentIds);
1582
using
var
_2 = PooledHashSet<Document>.GetInstance(out var infoChangedNewDocuments);