124 references to GetInstance
Microsoft.CodeAnalysis.Workspaces (124)
Classification\IRemoteSemanticClassificationService.cs (1)
75using var _2 = ArrayBuilder<string>.GetInstance(out var classificationTypes);
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\Extensions.cs (2)
389using var _ = ArrayBuilder<Diagnostic>.GetInstance(out var diagnosticsBuilder); 413using var _ = ArrayBuilder<Diagnostic>.GetInstance(out var diagnosticsBuilder);
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 (2)
226using var _2 = ArrayBuilder<ProjectId>.GetInstance(out var projectIdsToProcess); 330using var _ = ArrayBuilder<(PortableExecutableReference reference, MetadataId metadataId)>.GetInstance(out var uncomputedReferences);
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\NamedTypeSymbolReferenceFinder.cs (2)
33using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result); 115using var _ = ArrayBuilder<FinderLocation>.GetInstance(out var initialReferences);
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.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 (1)
167using var _ = ArrayBuilder<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)>.GetInstance(out var result);
FindSymbols\SymbolFinder_Declarations_CustomQueries.cs (1)
58using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result);
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_Source.cs (2)
104using var _ = ArrayBuilder<Checksum>.GetInstance(out var allChecksums); 130using var _ = ArrayBuilder<BuilderNode>.GetInstance(out var unsortedBuilderNodes);
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
145using var _ = ArrayBuilder<Task>.GetInstance(out var tasks);
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Create.cs (1)
20using var _1 = ArrayBuilder<DeclaredSymbolInfo>.GetInstance(out var declaredSymbolInfos);
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (1)
23using var _ = ArrayBuilder<TextChange>.GetInstance(out var commentChanges);
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (5)
108using var _ = ArrayBuilder<UnmergedDocumentChanges>.GetInstance(out var unmergedChanges); 144using var _1 = ArrayBuilder<TextChange>.GetInstance(out var unmergedDocumentChanges); 145using var _2 = ArrayBuilder<TextChange>.GetInstance(out var successfullyMergedChanges); 216using var _1 = ArrayBuilder<TextChange>.GetInstance(out var combinedChanges); 217using var _2 = ArrayBuilder<TextSpan>.GetInstance(out var mergeConflictResolutionSpans);
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
61using var _ = ArrayBuilder<SyntaxNode>.GetInstance(out var stack);
ReassignedVariable\AbstractReassignedVariableService.cs (3)
49using var _2 = ArrayBuilder<TextSpan>.GetInstance(out var result); 63using var _ = ArrayBuilder<SyntaxNode>.GetInstance(out var stack); 298using var _ = ArrayBuilder<SyntaxNode>.GetInstance(out var stack);
Recommendations\AbstractRecommendationServiceRunner.cs (3)
147using var _ = ArrayBuilder<ITypeSymbol>.GetInstance(out var concreteTypes); 194using var _ = ArrayBuilder<ITypeSymbol>.GetInstance(out var builder); 296using var _ = ArrayBuilder<ISymbol>.GetInstance(out var builder);
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\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);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher_TryParseSection.cs (1)
55using var _1 = ArrayBuilder<(int minValue, int maxValue)>.GetInstance(out var numberRangePairs);
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 (1)
407using var _ = ArrayBuilder<ISymbol>.GetInstance(out var results);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamespaceOrTypeSymbolExtensions.cs (1)
93using var _ = ArrayBuilder<INamespaceOrTypeSymbol>.GetInstance(out var stack);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
214using var _1 = ArrayBuilder<SyntaxNode>.GetInstance(out var commonAncestorsStack); 915using var _ = ArrayBuilder<TDirectiveTriviaSyntax>.GetInstance(out var condDirectivesBuilder);
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\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\ProducerConsumer.cs (1)
46using var _ = ArrayBuilder<TItem>.GetInstance(out var items);
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 (2)
113using var _1 = ArrayBuilder<SyntaxNode>.GetInstance(out var importsToAdd); 114using var _2 = ArrayBuilder<SyntaxNode>.GetInstance(out var nodesToSimplify);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (2)
294using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result); 316using var _ = ArrayBuilder<ISymbol>.GetInstance(out var result);
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\Simplification\AbstractSimplificationService.cs (1)
299using var _ = ArrayBuilder<SyntaxNode>.GetInstance(out var importDeclarations);
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\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\SolutionCompilationState.cs (6)
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); 1683using var _ = ArrayBuilder<T>.GetInstance(out var removedDocumentStates); 1761using var _ = ArrayBuilder<(DocumentId, SourceText)>.GetInstance(out var changedDocuments);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
765using var _1 = ArrayBuilder<DocumentState>.GetInstance(out var documentsWithTreesBuilder); 1108using var _ = ArrayBuilder<Checksum>.GetInstance(out var tempChecksumArray);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (2)
117using var _1 = ArrayBuilder<DocumentId>.GetInstance(out var documentsToAddOrUpdate); 253using var _ = ArrayBuilder<SyntaxTree>.GetInstance(out var treesToRemove);
Workspace\Solution\SolutionState_Checksum.cs (1)
117using var _ = ArrayBuilder<Task<ProjectStateChecksums>>.GetInstance(out var projectChecksumTasks);
Workspace\Solution\SourceGeneratorIdentity.cs (1)
42using var _ = ArrayBuilder<SourceGeneratorIdentity>.GetInstance(out var result);
Workspace\Workspace.cs (2)
288using var _2 = ArrayBuilder<DocumentId>.GetInstance(out var addedDocumentIds); 323using var _ = ArrayBuilder<(DocumentId, DocumentState)>.GetInstance(out var relatedDocumentIdsAndStates);