70 references to GetInstance
Microsoft.CodeAnalysis.Workspaces (70)
Classification\Classifier.cs (1)
126var parts = ArrayBuilder<SymbolDisplayPart>.GetInstance();
CodeCleanup\AbstractCodeCleanerService.cs (1)
120var builder = ArrayBuilder<TextSpan>.GetInstance();
CodeFixes\FixAllOccurrences\FixAllState.FixMultipleDiagnosticProvider.cs (1)
38var allDiagnosticsBuilder = ArrayBuilder<Diagnostic>.GetInstance();
Diagnostics\DiagnosticAnalysisResult.cs (1)
128var diagnosticsWithoutDocumentId = ArrayBuilder<DiagnosticData>.GetInstance();
Diagnostics\Extensions.cs (1)
26var result = ArrayBuilder<Diagnostic>.GetInstance();
Diagnostics\SkippedHostAnalyzersInfo.cs (1)
133var skippedDiagnosticIdsBuilder = ArrayBuilder<string>.GetInstance();
FindSymbols\FindReferences\BaseTypeFinder.cs (1)
82var typesBuilder = ArrayBuilder<INamedTypeSymbol>.GetInstance();
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
729var unsortedNodes = ArrayBuilder<BuilderNode>.GetInstance();
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (1)
353arrayBuilder = ArrayBuilder<int>.GetInstance();
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
105result ??= ArrayBuilder<TextSpan>.GetInstance();
PatternMatching\AllLowerCamelCaseMatcher.cs (1)
75var matchedSpansInReverse = includeMatchedSpans ? ArrayBuilder<TextSpan>.GetInstance() : null;
Rename\ConflictEngine\DeclarationConflictHelpers.cs (3)
52var builder = ArrayBuilder<Location>.GetInstance(); 97var resultBuilder = ArrayBuilder<ImmutableArray<ITypeSymbol>>.GetInstance(); 99var signatureBuilder = ArrayBuilder<ITypeSymbol>.GetInstance();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
176var results = ArrayBuilder<RenameLocation>.GetInstance();
Serialization\SerializationExtensions.cs (1)
73var builder = ArrayBuilder<string>.GetInstance();
Shared\Extensions\ILanguageMetadataExtensions.cs (2)
37var list = builder.GetOrAdd(language, _ => ArrayBuilder<Lazy<TInterface, TMetadata>>.GetInstance()); 55var list = map.GetOrAdd(language, _ => ArrayBuilder<Lazy<TInterface, TMetadata>>.GetInstance());
Shared\Extensions\ISolutionExtensions.cs (1)
22var results = ArrayBuilder<INamespaceSymbol>.GetInstance();
Shared\Extensions\TokenSemanticInfo.cs (1)
36var result = ArrayBuilder<ISymbol>.GetInstance();
src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (1)
84values = ArrayBuilder<V>.GetInstance();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (11)
217var builder = ArrayBuilder<TResult>.GetInstance(); 247var builder = ArrayBuilder<TResult>.GetInstance(); 272var builder = ArrayBuilder<TResult>.GetInstance(); 292var builder = ArrayBuilder<TResult>.GetInstance(); 313var builder = ArrayBuilder<TResult>.GetInstance(); 337var builder = ArrayBuilder<TResult>.GetInstance(); 399var builder = ArrayBuilder<TResult>.GetInstance(); 502builder = ArrayBuilder<T>.GetInstance(); 520builder = ArrayBuilder<T>.GetInstance(); 753var builder = ArrayBuilder<T>.GetInstance(); 795var builder = ArrayBuilder<TValue>.GetInstance();
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
335var builder = ArrayBuilder<T>.GetInstance();
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
857var resolvedParts = ArrayBuilder<string>.GetInstance();
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (8)
361var builder = ArrayBuilder<TResult>.GetInstance(); 372var builder = ArrayBuilder<TResult>.GetInstance(); 405var builder = ArrayBuilder<TResult>.GetInstance(); 417var builder = ArrayBuilder<TResult>.GetInstance(); 455var builder = ArrayBuilder<TResult>.GetInstance(); 470var builder = ArrayBuilder<TResult>.GetInstance(); 485var builder = ArrayBuilder<TResult>.GetInstance(); 497var builder = ArrayBuilder<TResult>.GetInstance();
src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
130var builder = ArrayBuilder<TextChangeRange>.GetInstance();
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
469var builder = GetInstance(); 476var builder = GetInstance(); 541bucket = ArrayBuilder<T>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\NamingStyles\NamingStyleOptionAccumulator.cs (1)
33_rules ??= ArrayBuilder<NamingStyleOption>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (2)
25var builder = ArrayBuilder<Compilation>.GetInstance(); 60var builder = ArrayBuilder<IAssemblySymbol>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
427var results = ArrayBuilder<ITypeParameterSymbol>.GetInstance(); 448var results = ArrayBuilder<ITypeSymbol>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (1)
39var unreachableBlocksToVisit = ArrayBuilder<BasicBlock>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
39_allocatedBasicBlockAnalysisDatas = ArrayBuilder<BasicBlockAnalysisData>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
22var symbolSpecifications = ArrayBuilder<SymbolSpecification>.GetInstance(); 23var namingStyles = ArrayBuilder<NamingStyle>.GetInstance(); 24var namingRules = ArrayBuilder<SerializableNamingRule>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (3)
153var builder = ArrayBuilder<SymbolKindOrTypeKind>.GetInstance(); 246var builder = ArrayBuilder<Accessibility>.GetInstance(); 316var builder = ArrayBuilder<ModifierKind>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
292var applicableSymbolKindList = ArrayBuilder<SymbolKindOrTypeKind>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\ArrayBuilder.cs (1)
11instance = GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (1)
39=> new(ArrayBuilder<T>.GetInstance());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (2)
81builder = ArrayBuilder<TValue>.GetInstance(); 93builder = ArrayBuilder<TValue>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (2)
325var nullCheckStatements = ArrayBuilder<SyntaxNode>.GetInstance(); 326var assignStatements = ArrayBuilder<SyntaxNode>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
279var statements = ArrayBuilder<SyntaxNode>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (3)
25var result = ArrayBuilder<SyntaxNode>.GetInstance(); 55var statements = ArrayBuilder<SyntaxNode>.GetInstance(); 128var statements = ArrayBuilder<SyntaxNode>.GetInstance();