22 references to GetInstance
Microsoft.CodeAnalysis.CodeStyle (22)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
988var set = PooledHashSet<T>.GetInstance(); 1321var set = PooledHashSet<TElement>.GetInstance();
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
668var set = PooledHashSet<T>.GetInstance(); 709var set = PooledHashSet<S>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\CustomDataFlowAnalysis.cs (2)
35var dispatchedExceptionsFromRegions = PooledHashSet<ControlFlowRegion>.GetInstance(); 85var processedBlocks = PooledHashSet<BasicBlock>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\LValueFlowCaptureProvider.cs (1)
50var rvalueFlowCaptureIds = PooledHashSet<CaptureId>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
40_referenceTakenSymbolsBuilder = PooledHashSet<ISymbol>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
110values = PooledHashSet<IOperation>.GetInstance(); 233values = PooledHashSet<IOperation>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (7)
131symbolsRead: PooledHashSet<ISymbol>.GetInstance(), 132lambdaOrLocalFunctionsBeingAnalyzed: PooledHashSet<IMethodSymbol>.GetInstance(), 221var operations = PooledHashSet<IOperation>.GetInstance(); 225writesInBlockRange = PooledHashSet<(ISymbol, IOperation)>.GetInstance(); 467captures = PooledHashSet<(ISymbol, IOperation)>.GetInstance(); 523var targetsBuilder = PooledHashSet<IOperation>.GetInstance(); 589var targetsBuilder = PooledHashSet<IOperation>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.OperationTreeAnalysisData.cs (2)
47symbolsRead: PooledHashSet<ISymbol>.GetInstance(), 48lambdaOrLocalFunctionsBeingAnalyzed: PooledHashSet<IMethodSymbol>.GetInstance(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
167var set = PooledHashSet<(ISymbol, IOperation)>.GetInstance(); 176set = PooledHashSet<(ISymbol, IOperation)>.GetInstance();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledHashSet.cs (1)
13instance = GetInstance();