230 references to PooledDisposer
Microsoft.CodeAnalysis.Workspaces (230)
Classification\IRemoteSemanticClassificationService.cs (2)
74using var _1 = PooledDictionary<string, int>.GetInstance(out var classificationTypeToId); 75using var _2 = ArrayBuilder<string>.GetInstance(out var classificationTypes);
CodeActions\CodeAction_Cleanup.cs (1)
89using var _ = ArrayBuilder<(DocumentId documentId, CodeCleanupOptions options)>.GetInstance(documentIds.Length, out var documentIdsAndOptions);
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (6)
145using var _1 = ArrayBuilder<Task<ImmutableArray<Document>>>.GetInstance(out var tasks); 154using var _2 = ArrayBuilder<CodeAction>.GetInstance(out var codeActions); 163using var _3 = ArrayBuilder<Document>.GetInstance(out var changedDocuments); 185using var _4 = ArrayBuilder<Document>.GetInstance(out var result); 207using var _ = ArrayBuilder<Task>.GetInstance(out var tasks); 235using var _ = ArrayBuilder<CodeAction>.GetInstance(out var builder);
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (1)
86using var _2 = ArrayBuilder<Diagnostic>.GetInstance(out var builder);
Diagnostics\DiagnosticAnalysisResult.cs (1)
224using var _ = ArrayBuilder<DiagnosticData>.GetInstance(out var builder);
Diagnostics\DiagnosticData.cs (1)
261using var _ = ArrayBuilder<DiagnosticDataLocation>.GetInstance(diagnostic.AdditionalLocations.Count, out var builder);
Diagnostics\Extensions.cs (2)
389using var _ = ArrayBuilder<Diagnostic>.GetInstance(out var diagnosticsBuilder); 413using var _ = ArrayBuilder<Diagnostic>.GetInstance(out var diagnosticsBuilder);
Diagnostics\HostDiagnosticAnalyzers.cs (1)
248using var _ = ArrayBuilder<KeyValuePair<object, AnalyzerReference>>.GetInstance(source.Count, out var builder);
Diagnostics\SkippedHostAnalyzersInfo.cs (3)
53using var _1 = PooledHashSet<object>.GetInstance(out var projectAnalyzerIds); 54using var _2 = PooledHashSet<string>.GetInstance(out var projectAnalyzerDiagnosticIds); 55using var _3 = PooledHashSet<string>.GetInstance(out var projectSuppressedDiagnosticIds);
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (4)
62using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result); 82using var _ = ArrayBuilder<ISymbol>.GetInstance(out var buffer); 97using var _ = ArrayBuilder<ISymbol>.GetInstance(out var buffer); 117using var _ = ArrayBuilder<ISymbol>.GetInstance(out var buffer);
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (2)
180using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result); 193using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result);
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
143using var _ = ArrayBuilder<SyntaxToken>.GetInstance(out var matches);
FindSymbols\FindReferences\BaseTypeFinder.cs (1)
20using var _ = ArrayBuilder<ISymbol>.GetInstance(out var results);
FindSymbols\FindReferences\DependentProjectsFinder.cs (5)
80using var _ = PooledHashSet<Project>.GetInstance(out var result); 170using var _ = PooledHashSet<(Project, bool hasInternalsAccess)>.GetInstance(out var dependentProjects); 198using var _1 = PooledDictionary<ProjectId, List<ProjectId>>.GetInstance(out var projectIdsToReferencingSubmissionIds); 227using var _2 = ArrayBuilder<ProjectId>.GetInstance(out var projectIdsToProcess); 331using var _ = ArrayBuilder<(PortableExecutableReference reference, MetadataId metadataId)>.GetInstance(out var uncomputedReferences);
FindSymbols\FindReferences\DependentTypeFinder.cs (11)
106using var _1 = GetSymbolSet(out var result); 110using var _2 = GetSymbolSet(out var currentMetadataTypes); 113using var _3 = GetSymbolSet(out var currentSourceAndMetadataTypes); 118using var _4 = PooledHashSet<PortableExecutableReference>.GetInstance(out var seenPEReferences); 152using var _ = GetSymbolSet(out var tempBuffer); 171using var _ = GetSymbolSet(out var tempBuffer); 199using var _1 = GetSymbolSet(out var typesToSearchFor); 200using var _2 = GetSymbolSet(out var tempBuffer); 300using var _1 = GetSymbolSet(out var typesToSearchFor); 301using var _2 = GetSymbolSet(out var tempBuffer); 562public static PooledDisposer<PooledHashSet<INamedTypeSymbol>> GetSymbolSet(out SymbolSet instance)
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (1)
84using var _ = ArrayBuilder<INamedTypeSymbol>.GetInstance(out var builder);
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (1)
109using var _ = ArrayBuilder<SyntaxToken>.GetInstance(out var tokens);
FindSymbols\FindReferences\Finders\AbstractMethodOrPropertyOrEventSymbolReferenceFinder.cs (1)
36using var _ = ArrayBuilder<IMethodSymbol>.GetInstance(out var result);
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (1)
49using var _ = PooledHashSet<Document>.GetInstance(out var result);
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (2)
33using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result); 115using var _ = ArrayBuilder<FinderLocation>.GetInstance(out var tempReferences);
FindSymbols\FindReferences\Finders\NamespaceSymbolReferenceFinder.cs (1)
68using var _ = ArrayBuilder<FinderLocation>.GetInstance(out var initialReferences);
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
62using var _ = ArrayBuilder<ISymbol>.GetInstance(out var symbols);
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (1)
36using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result);
FindSymbols\FindReferences\FindReferenceCache.cs (3)
155using var _ = ArrayBuilder<SyntaxToken>.GetInstance(out var result); 193using var _ = ArrayBuilder<SyntaxToken>.GetInstance(out var result); 225using var _ = ArrayBuilder<SyntaxToken>.GetInstance(out var initializers);
FindSymbols\FindReferences\FindReferencesSearchEngine.BidirectionalSymbolSet.cs (1)
50using var _ = ArrayBuilder<ISymbol>.GetInstance(out var workQueue);
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (3)
219using var _1 = PooledDictionary<ISymbol, PooledHashSet<string>>.GetInstance(out var symbolToGlobalAliases); 220using var _2 = PooledDictionary<Document, Dictionary<ISymbol, SymbolGroup>>.GetInstance(out var documentToSymbolsWithin); 224using var _3 = PooledHashSet<Document>.GetInstance(out var foundDocuments);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (2)
151using var _ = ArrayBuilder<ISymbol>.GetInstance(out var workQueue); 171using var _ = ArrayBuilder<ISymbol>.GetInstance(out var workQueue);
FindSymbols\FindReferences\FindReferencesSearchEngine.UnidirectionalSymbolSet.cs (1)
48using var _ = ArrayBuilder<ISymbol>.GetInstance(out var workQueue);
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (2)
77using var _ = PooledDictionary<ISymbol, PooledHashSet<string>>.GetInstance(out var symbolToGlobalAliases); 167using var _ = ArrayBuilder<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)>.GetInstance(out var result);
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (2)
46using var _ = PooledDictionary<SerializableSymbolAndProjectId, ISymbol>.GetInstance(out var map); 72using var _ = ArrayBuilder<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)>.GetInstance(references.Length, out var rehydrated);
FindSymbols\SymbolFinder_Declarations_CustomQueries.cs (1)
58using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result);
FindSymbols\SymbolFinder_Helpers.cs (1)
103using var _ = PooledDictionary<INamedTypeSymbol, INamedTypeSymbol>.GetInstance(out var equivalentTypesWithDifferingAssemblies);
FindSymbols\SymbolFinder_Hierarchy.cs (3)
44using var _ = ArrayBuilder<ISymbol>.GetInstance(out var results); 149using var _ = ArrayBuilder<ISymbol>.GetInstance(out var builder); 370using var _ = ArrayBuilder<ISymbol>.GetInstance(out var results);
FindSymbols\SymbolTree\SymbolTreeInfo.cs (3)
305using var _1 = ArrayBuilder<int>.GetInstance(unsortedNodes.Length, out var tmp); 316using var _2 = ArrayBuilder<int>.GetInstance(unsortedNodes.Length, out var ranking); 321using var _3 = ArrayBuilder<Node>.GetInstance(unsortedNodes.Length, out var result);
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
200using var _ = ArrayBuilder<Node>.GetInstance(nodeCount, out var nodes);
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (3)
104using var _ = ArrayBuilder<Checksum>.GetInstance(out var allChecksums); 130using var _ = ArrayBuilder<BuilderNode>.GetInstance(out var unsortedBuilderNodes); 161using var _ = PooledHashSet<string>.GetInstance(out var seenNames);
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
145using var _ = ArrayBuilder<Task>.GetInstance(out var tasks);
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Create.cs (2)
20using var _1 = ArrayBuilder<DeclaredSymbolInfo>.GetInstance(out var declaredSymbolInfos); 21using var _2 = PooledDictionary<string, ArrayBuilder<int>>.GetInstance(out var extensionMethodInfo);
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (1)
162using var _1 = PooledDictionary<string, string?>.GetInstance(out var aliases);
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (2)
18using var _ = ArrayBuilder<TextChange>.GetInstance(out var commentChanges); 64using var _ = ArrayBuilder<TextChange>.GetInstance(out var commentChanges);
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (8)
23using var _1 = PooledDictionary<string, DocumentAndHashBuilder>.GetInstance(out var filePathToNewDocumentsAndHashes); 49using var _ = ArrayBuilder<LinkedFileMergeResult>.GetInstance( 107using var _ = ArrayBuilder<UnmergedDocumentChanges>.GetInstance(out var unmergedChanges); 142using var _1 = ArrayBuilder<TextChange>.GetInstance(out var unmergedDocumentChanges); 143using var _2 = ArrayBuilder<TextChange>.GetInstance(out var successfullyMergedChanges); 214using var _1 = ArrayBuilder<TextChange>.GetInstance(out var combinedChanges); 215using var _2 = ArrayBuilder<TextSpan>.GetInstance(out var mergeConflictResolutionSpans); 275using var _ = ArrayBuilder<TextChange>.GetInstance(changes.Length, out var normalizedChanges);
Log\KeyValueLogMessage.cs (1)
91using var _ = PooledStringBuilder.GetInstance(out var builder);
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
61using var _ = ArrayBuilder<SyntaxNode>.GetInstance(out var stack);
Options\GlobalOptionService.cs (1)
191using var _ = ArrayBuilder<(OptionKey2, object?)>.GetInstance(options.Count, out var changedOptions);
ReassignedVariable\AbstractReassignedVariableService.cs (5)
48using var _1 = PooledDictionary<ISymbol, bool>.GetInstance(out var symbolToIsReassigned); 49using var _2 = ArrayBuilder<TextSpan>.GetInstance(out var result); 50using var _3 = PooledDictionary<SyntaxTree, SemanticModel>.GetInstance(out var syntaxTreeToModel); 63using var _ = ArrayBuilder<SyntaxNode>.GetInstance(out var stack); 298using var _ = ArrayBuilder<SyntaxNode>.GetInstance(out var stack);
Recommendations\AbstractRecommendationServiceRunner.cs (4)
147using var _ = ArrayBuilder<ITypeSymbol>.GetInstance(out var concreteTypes); 194using var _ = ArrayBuilder<ITypeSymbol>.GetInstance(out var builder); 296using var _ = ArrayBuilder<ISymbol>.GetInstance(out var builder); 403using var _ = ArrayBuilder<ISymbol>.GetInstance(containerMembers.Length, out var result);
Remote\RemoteUtilities.cs (1)
27using var _ = ArrayBuilder<(DocumentId, ImmutableArray<TextChange>)>.GetInstance(out var builder);
Rename\Renamer.cs (1)
115using var _ = ArrayBuilder<RenameDocumentAction>.GetInstance(out var actions);
Rename\SymbolicRenameLocations.cs (4)
82using var _0 = ArrayBuilder<RenameLocation>.GetInstance(out var mergedLocations); 83using var _1 = ArrayBuilder<ISymbol>.GetInstance(out var mergedReferencedSymbols); 84using var _2 = ArrayBuilder<ReferenceLocation>.GetInstance(out var mergedImplicitLocations); 117using var _ = ArrayBuilder<SearchResult>.GetInstance(out var overloadsResult);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
332using var _1 = ArrayBuilder<RenameLocation>.GetInstance(out var stringLocations); 333using var _2 = ArrayBuilder<RenameLocation>.GetInstance(out var commentLocations);
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
128using var _ = ArrayBuilder<ReferencedSymbol>.GetInstance(out var result);
Shared\Extensions\ILanguageMetadataExtensions.cs (1)
47using var _ = PooledDictionary<string, ArrayBuilder<Lazy<TInterface, TMetadata>>>.GetInstance(out var map);
Shared\Extensions\INamespaceSymbolExtensions.cs (3)
61using var _ = ArrayBuilder<INamespaceOrTypeSymbol>.GetInstance(out var stack); 85using var _ = ArrayBuilder<INamespaceSymbol>.GetInstance(out var stack); 113using var _ = ArrayBuilder<INamespaceSymbol>.GetInstance(out var stack);
Shared\Extensions\ITypeSymbolExtensions.cs (1)
42using var _ = ArrayBuilder<ISymbol>.GetInstance(out var builder);
Shared\Utilities\AsyncBatchingWorkQueue`2.cs (1)
143using var _ = ArrayBuilder<TItem>.GetInstance(out var items);
Shared\Utilities\DocumentationComment.cs (1)
213using var _ = PooledStringBuilder.GetInstance(out var builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher_TryParseSection.cs (2)
32using var _0 = PooledStringBuilder.GetInstance(out var sb); 55using var _1 = ArrayBuilder<(int minValue, int maxValue)>.GetInstance(out var numberRangePairs);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (2)
155using var _ = PooledStringBuilder.GetInstance(out var sb); 167using var _ = PooledStringBuilder.GetInstance(out var sb);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (2)
96using var _ = PooledStringBuilder.GetInstance(out var sb); 103using var _ = PooledStringBuilder.GetInstance(out var sb);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\VirtualCharSequence.cs (1)
186using var _ = PooledStringBuilder.GetInstance(out var builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICollectionExtensions.cs (1)
16using var _ = ArrayBuilder<T>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (3)
409using var _ = ArrayBuilder<ISymbol>.GetInstance(out var results); 452using var _ = PooledHashSet<string>.GetInstance(out var seenNames); 535using var _ = PooledDictionary<ISymbol, int>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamespaceOrTypeSymbolExtensions.cs (1)
93using var _ = ArrayBuilder<INamespaceOrTypeSymbol>.GetInstance(out var stack);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
151using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (4)
183using var _ = PooledHashSet<SyntaxNode>.GetInstance(out var set); 214using var _1 = ArrayBuilder<SyntaxNode>.GetInstance(out var commonAncestorsStack); 215using var _2 = PooledHashSet<SyntaxNode>.GetInstance(out var commonAncestorsSet); 915using var _ = ArrayBuilder<TDirectiveTriviaSyntax>.GetInstance(out var condDirectivesBuilder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
189using var _ = PooledHashSet<ILocalSymbol>.GetInstance(out var builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
127using var _ = ArrayBuilder<SuppressOperation>.GetInstance(out var result); 150using var _ = ArrayBuilder<SuppressOperation>.GetInstance(out var buffer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (1)
163using var _ = ArrayBuilder<SuppressOperation>.GetInstance(out var suppressOperationScratch);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (3)
240using var _ = ArrayBuilder<SyntaxTrivia>.GetInstance(out var triviaList); 268using var _ = ArrayBuilder<TextChange>.GetInstance(out var changes); 629using var _ = ArrayBuilder<SyntaxTrivia>.GetInstance(out var lineBreaks);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\TriviaHelpers.cs (1)
19using var _ = ArrayBuilder<SyntaxTrivia>.GetInstance(out var builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (2)
213using var _ = ArrayBuilder<string>.GetInstance(out var violations); 255using var _ = ArrayBuilder<string>.GetInstance(out var violations);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\ArrayBuilder.cs (3)
9public static PooledDisposer<ArrayBuilder<T>> GetInstance(out ArrayBuilder<T> instance) 15public static PooledDisposer<ArrayBuilder<T>> GetInstance(int capacity, out ArrayBuilder<T> instance) 21public static PooledDisposer<ArrayBuilder<T>> GetInstance(int capacity, T fillWithValue, out ArrayBuilder<T> instance)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledDictionary.cs (1)
9public static PooledDisposer<PooledDictionary<K, V>> GetInstance(out PooledDictionary<K, V> instance)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledHashSet.cs (1)
11public static PooledDisposer<PooledHashSet<T>> GetInstance(out PooledHashSet<T> instance)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledStringBuilder.cs (1)
11public static PooledDisposer<PooledStringBuilder> GetInstance(out StringBuilder instance)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
88using var _ = ArrayBuilder<SyntaxNode>.GetInstance(out var selectedMembers);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
25using var _ = ArrayBuilder<Location>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
55using var _ = ArrayBuilder<string>.GetInstance(out var builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (3)
26using var _1 = ArrayBuilder<string?>.GetInstance(out var friendlyNames); 27using var _2 = ArrayBuilder<Location>.GetInstance(out var locations); 41using var _3 = ArrayBuilder<ISymbol>.GetInstance(out var elementTypes);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
38using var _ = ArrayBuilder<T>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (1)
112using var _ = PooledHashSet<U>.GetInstance(out var set);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
46using var _ = ArrayBuilder<TItem>.GetInstance(out var items);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (2)
94using var _ = PooledHashSet<T>.GetInstance(out var set); 124using var _ = PooledHashSet<T>.GetInstance(out var set);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
65using var _ = ArrayBuilder<(TDiagnosticNode diagnosticNode, Diagnostic diagnostic)>.GetInstance(out var originalNodes);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
552using var _ = ArrayBuilder<SyntaxToken>.GetInstance(out var updatedModifiersList);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (1)
124using var _ = ArrayBuilder<SyntaxTrivia>.GetInstance(out var triviaList);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (4)
77using var _ = PooledHashSet<INamespaceSymbol>.GetInstance(out var conflicts); 113using var _1 = ArrayBuilder<SyntaxNode>.GetInstance(out var importsToAdd); 114using var _2 = ArrayBuilder<SyntaxNode>.GetInstance(out var nodesToSimplify); 174using var _ = PooledDictionary<INamespaceSymbol, SyntaxNode>.GetInstance(out var importToSyntax);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (4)
294using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result); 316using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result); 353using var _1 = ArrayBuilder<SyntaxNode>.GetInstance(out var nullCheckStatements); 354using var _2 = ArrayBuilder<SyntaxNode>.GetInstance(out var assignStatements);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (2)
141using var _2 = ArrayBuilder<SyntaxNode>.GetInstance(out var expressions); 285using var _ = ArrayBuilder<SyntaxNode>.GetInstance(out var expressions);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
195using var _ = ArrayBuilder<SyntaxNode>.GetInstance(out var accessors);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (1)
18using var _ = ArrayBuilder<(IParameterSymbol, bool before)>.GetInstance(out var siblings);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
277using var _ = ArrayBuilder<SyntaxNode>.GetInstance(out var importDeclarations);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (3)
46using var isFixedDisposer = ArrayBuilder<bool>.GetInstance(names.Length, fillWithValue: false, out var isFixed); 66using var _1 = ArrayBuilder<bool>.GetInstance(names.Length, out var isFixedBuilder); 67using var _2 = ArrayBuilder<string>.GetInstance(names.Length, out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
62using var _ = ArrayBuilder<IOperation>.GetInstance(out var stack);
TaskList\TaskListItemDescriptor.cs (1)
32using var _ = ArrayBuilder<TaskListItemDescriptor>.GetInstance(out var result);
Workspace\Host\DocumentService\AbstractSpanMappingService.cs (1)
35using var _ = ArrayBuilder<(string, TextChange)>.GetInstance(out var mappedFilePathAndTextChange);
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (1)
75using var _ = PooledHashSet<string>.GetInstance(out var referenceDirectories);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
566using var _ = ArrayBuilder<(DocumentId documentId, SourceTextContainer textContainer)>.GetInstance(out var documentsToOpen);
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
782using var _ = ArrayBuilder<AnalyzerFileReference>.GetInstance(out var initialReferenceList);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
158using var _ = ArrayBuilder<ProjectInfo>.GetInstance(out var projectInfos);
Workspace\Solution\ProjectDependencyGraph.cs (1)
216using var _1 = PooledDictionary<ProjectId, ImmutableHashSet<ProjectId>.Builder>.GetInstance(out var reverseReferencesMapBuilders);
Workspace\Solution\Solution.cs (2)
362using var _ = ArrayBuilder<ProjectInfo>.GetInstance(1, out var projectInfos); 374using var _ = ArrayBuilder<ProjectId>.GetInstance(1, out var projectIds);
Workspace\Solution\SolutionCompilationState.cs (11)
330using var _ = PooledHashSet<ProjectId>.GetInstance(out var dependentProjects); 368using var _ = PooledHashSet<ProjectId>.GetInstance(out var dependentProjects); 604using var _1 = ArrayBuilder<DocumentInfo>.GetInstance(out var addedDocumentInfos); 605using var _2 = ArrayBuilder<DocumentId>.GetInstance(out var removedDocumentInfos); 619using var _3 = ArrayBuilder<TDocumentState>.GetInstance(out var updatedDocuments); 810using var _ = ArrayBuilder<TDocumentState>.GetInstance(out var newDocumentStates); 1328using var _ = ArrayBuilder<SourceGeneratedDocumentState>.GetInstance(documents.Length, out var documentStates); 1594using var _ = ArrayBuilder<DocumentState>.GetInstance(allDocumentIds.Length, out var documentStates); 1624using var _ = PooledDictionary<ProjectId, ArrayBuilder<DocumentState>>.GetInstance(out var missingDocumentStates); 1706using var _ = ArrayBuilder<T>.GetInstance(out var removedDocumentStates); 1784using var _ = ArrayBuilder<(DocumentId, SourceText)>.GetInstance(out var changedDocuments);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (4)
765using var _1 = ArrayBuilder<DocumentState>.GetInstance(out var documentsWithTreesBuilder); 784using var _ = ArrayBuilder<SyntaxTree>.GetInstance(documentsWithTrees.Length, out var alreadyParsedTrees); 873using var _ = ArrayBuilder<Diagnostic>.GetInstance(capacity: driverRunResult.Diagnostics.Length, out var builder); 1108using var _ = ArrayBuilder<Checksum>.GetInstance(out var tempChecksumArray);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (3)
117using var _1 = ArrayBuilder<DocumentId>.GetInstance(out var documentsToAddOrUpdate); 118using var _2 = PooledDictionary<DocumentId, int>.GetInstance(out var documentIdToIndex); 253using var _ = ArrayBuilder<SyntaxTree>.GetInstance(out var treesToRemove);
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (1)
74using var _ = ArrayBuilder<SecondaryReferencedSymbol>.GetInstance(
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (1)
177using var _ = PooledDictionary<DocumentState, int>.GetInstance(out var documentToIndex);
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
89using var _ = PooledDictionary<ISourceGenerator, AnalyzerReference>.GetInstance(out var generatorToAnalyzerReference);
Workspace\Solution\SolutionState.cs (4)
332using var _ = ArrayBuilder<ProjectState>.GetInstance(projectInfos.Count, out var projectStates); 375using var _1 = ArrayBuilder<ProjectId>.GetInstance(ProjectIds.Count + projectStates.Count, out var newProjectIdsBuilder); 376using var _2 = PooledHashSet<ProjectId>.GetInstance(out var addedProjectIds); 437using var _ = PooledHashSet<ProjectId>.GetInstance(out var projectIdsSet);
Workspace\Solution\SolutionState_Checksum.cs (1)
117using var _ = ArrayBuilder<Task<ProjectStateChecksums>>.GetInstance(out var projectChecksumTasks);
Workspace\Solution\SourceGeneratedDocumentIdentity.cs (1)
52using 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)
108using var _ = ArrayBuilder<Checksum>.GetInstance(this.Map.Count * 2, out var checksums); 121using var _ = PooledStringBuilder.GetInstance(out var builder);
Workspace\Solution\SourceGeneratorIdentity.cs (1)
42using var _ = ArrayBuilder<SourceGeneratorIdentity>.GetInstance(out var result);
Workspace\Solution\TextDocumentStates.cs (1)
161using var _ = PooledHashSet<DocumentId>.GetInstance(out var set);
Workspace\Workspace.cs (7)
297using var _1 = PooledHashSet<DocumentId>.GetInstance(out var changedDocumentIds); 298using var _2 = ArrayBuilder<DocumentId>.GetInstance(out var addedDocumentIds); 333using var _ = ArrayBuilder<(DocumentId, DocumentState)>.GetInstance(out var relatedDocumentIdsAndStates); 374using var _ = PooledDictionary<DocumentId, DocumentState>.GetInstance(out var relatedDocumentIdsAndStates); 746using var _ = ArrayBuilder<ProjectInfo>.GetInstance(projects.Count, out var builder); 1623using var _1 = PooledHashSet<DocumentId>.GetInstance(out var infoChangedDocumentIds); 1624using var _2 = PooledHashSet<Document>.GetInstance(out var infoChangedNewDocuments);