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