26 references to GetInstance
Microsoft.CodeAnalysis.Workspaces (26)
CodeActions\CodeAction_Cleanup.cs (1)
89using var _ = ArrayBuilder<(DocumentId documentId, CodeCleanupOptions options)>.GetInstance(documentIds.Length, out var documentIdsAndOptions);
Diagnostics\DiagnosticData.cs (1)
261using var _ = ArrayBuilder<DiagnosticDataLocation>.GetInstance(diagnostic.AdditionalLocations.Count, out var builder);
Diagnostics\HostDiagnosticAnalyzers.cs (1)
248using var _ = ArrayBuilder<KeyValuePair<object, AnalyzerReference>>.GetInstance(source.Count, out var builder);
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (1)
72using var _ = ArrayBuilder<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)>.GetInstance(references.Length, out var rehydrated);
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);
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (2)
49using var _ = ArrayBuilder<LinkedFileMergeResult>.GetInstance( 277using var _ = ArrayBuilder<TextChange>.GetInstance(changes.Length, out var normalizedChanges);
Options\GlobalOptionService.cs (1)
191using var _ = ArrayBuilder<(OptionKey2, object?)>.GetInstance(options.Count, out var changedOptions);
Recommendations\AbstractRecommendationServiceRunner.cs (1)
403using var _ = ArrayBuilder<ISymbol>.GetInstance(containerMembers.Length, out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (2)
66using var _1 = ArrayBuilder<bool>.GetInstance(names.Length, out var isFixedBuilder); 67using var _2 = ArrayBuilder<string>.GetInstance(names.Length, out var result);
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 (2)
1328using var _ = ArrayBuilder<SourceGeneratedDocumentState>.GetInstance(documents.Length, out var documentStates); 1571using var _ = ArrayBuilder<DocumentState>.GetInstance(allDocumentIds.Length, out var documentStates);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
784using var _ = ArrayBuilder<SyntaxTree>.GetInstance(documentsWithTrees.Length, out var alreadyParsedTrees); 873using var _ = ArrayBuilder<Diagnostic>.GetInstance(capacity: driverRunResult.Diagnostics.Length, out var builder);
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (1)
74using var _ = ArrayBuilder<SecondaryReferencedSymbol>.GetInstance(
Workspace\Solution\SolutionState.cs (2)
332using var _ = ArrayBuilder<ProjectState>.GetInstance(projectInfos.Count, out var projectStates); 375using var _1 = ArrayBuilder<ProjectId>.GetInstance(ProjectIds.Count + projectStates.Count, out var newProjectIdsBuilder);
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 (1)
108using var _ = ArrayBuilder<Checksum>.GetInstance(this.Map.Count * 2, out var checksums);
Workspace\Workspace.cs (1)
704using var _ = ArrayBuilder<ProjectInfo>.GetInstance(projects.Count, out var builder);