47 references to GetInstance
Microsoft.CodeAnalysis.CodeStyle (47)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
28private readonly ArrayBuilder<ISymbol> _hashedSymbols = ArrayBuilder<ISymbol>.GetInstance();
src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (1)
84values = ArrayBuilder<V>.GetInstance();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (14)
217var builder = ArrayBuilder<TResult>.GetInstance(); 247var builder = ArrayBuilder<TResult>.GetInstance(); 272var builder = ArrayBuilder<TResult>.GetInstance(); 292var builder = ArrayBuilder<TResult>.GetInstance(); 312var builder = ArrayBuilder<TResult>.GetInstance(); 335var builder = ArrayBuilder<TResult>.GetInstance(); 359var builder = ArrayBuilder<TResult>.GetInstance(); 383var builder = ArrayBuilder<TResult>.GetInstance(); 408var builder = ArrayBuilder<TResult>.GetInstance(); 470var builder = ArrayBuilder<TResult>.GetInstance(); 573builder = ArrayBuilder<T>.GetInstance(); 591builder = ArrayBuilder<T>.GetInstance(); 824var builder = ArrayBuilder<T>.GetInstance(); 866var builder = ArrayBuilder<TValue>.GetInstance();
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
335var builder = ArrayBuilder<T>.GetInstance();
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
82var results = ArrayBuilder<ISymbol>.GetInstance();
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
857var resolvedParts = ArrayBuilder<string>.GetInstance();
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (9)
361var builder = ArrayBuilder<TResult>.GetInstance(); 372var builder = ArrayBuilder<TResult>.GetInstance(); 421var builder = ArrayBuilder<TResult>.GetInstance(); 433var builder = ArrayBuilder<TResult>.GetInstance(); 471var builder = ArrayBuilder<TResult>.GetInstance(); 483var builder = ArrayBuilder<TResult>.GetInstance(); 498var builder = ArrayBuilder<TResult>.GetInstance(); 513var builder = ArrayBuilder<TResult>.GetInstance(); 525var 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)
439var results = ArrayBuilder<ITypeParameterSymbol>.GetInstance(); 460var 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_SymbolSpec.cs (3)
132var builder = ArrayBuilder<SymbolKindOrTypeKind>.GetInstance(); 210var builder = ArrayBuilder<Accessibility>.GetInstance(); 265var 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();