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