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