23 references to GetInstance
Microsoft.CodeAnalysis (23)
Binding\BindingDiagnosticBag.cs (1)
72: this(usePool ? DiagnosticBag.GetInstance() : new DiagnosticBag(), usePool ? PooledHashSet<TAssemblySymbol>.GetInstance() : new HashSet<TAssemblySymbol>())
Collections\ImmutableArrayExtensions.cs (2)
1059var set = PooledHashSet<T>.GetInstance(); 1392var set = PooledHashSet<TElement>.GetInstance();
Collections\TopologicalSort.cs (1)
102var counted = PooledHashSet<TNode>.GetInstance();
CommandLine\CommandLineArguments.cs (1)
519var resolvedReferencesSet = PooledHashSet<AnalyzerFileReference>.GetInstance();
CommandLine\CommonCompiler.cs (1)
303var processedDirs = PooledHashSet<string>.GetInstance();
DiagnosticAnalyzer\AnalyzerDriver.cs (4)
897var uniqueDiagnosticIds = PooledHashSet<string>.GetInstance(); 1829var processedAnalyzers = PooledHashSet<DiagnosticAnalyzer>.GetInstance(); 2032var unsuppressedAnalyzersBuilder = PooledHashSet<DiagnosticAnalyzer>.GetInstance(); 2079var symbolStartAnalyzers = PooledHashSet<DiagnosticAnalyzer>.GetInstance();
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
778var blockEndActions = PooledHashSet<TBlockAction>.GetInstance(); 779var blockActions = PooledHashSet<TBlockAction>.GetInstance();
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
896var partialTrees = PooledHashSet<SyntaxTree>.GetInstance();
Emit\EditAndContinue\DefinitionMap.cs (1)
714var lambdaIdSet = PooledHashSet<DebugId>.GetInstance();
NativePdbWriter\PdbWriter.cs (1)
180lazyDeclaredExternAliases = PooledHashSet<string>.GetInstance();
Operations\ControlFlowGraphBuilder.BasicBlockBuilder.cs (1)
171_predecessors = PooledHashSet<BasicBlockBuilder>.GetInstance();
Operations\ControlFlowGraphBuilder.cs (3)
229var dispatchedExceptionsFromRegions = PooledHashSet<ControlFlowRegion>.GetInstance(); 1200unresolved = PooledHashSet<BasicBlockBuilder>.GetInstance(); 1868var idsStillOnTheStack = PooledHashSet<CaptureId>.GetInstance();
ReferenceManager\CommonReferenceManager.Binding.cs (1)
235var resolutionFailures = PooledHashSet<AssemblyIdentity>.GetInstance();
SourceGeneration\Nodes\InputNode.cs (1)
51var itemsSet = (_inputComparer == EqualityComparer<T>.Default) ? PooledHashSet<T>.GetInstance() : new HashSet<T>(_inputComparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
668var set = PooledHashSet<T>.GetInstance(); 709var set = PooledHashSet<S>.GetInstance();