79 references to GetInstance
Microsoft.CodeAnalysis (11)
CodeGen\SynthesizedLocalOrdinalsDispenser.cs (1)
50
_lazyMap = PooledDictionary<long, int>.
GetInstance
();
Collections\OrderPreservingMultiDictionary.cs (1)
87
_dictionary ??= PooledDictionary<K, ValueSet>.
GetInstance
();
Collections\TopologicalSort.cs (1)
79
var predecessorCounts = PooledDictionary<TNode, int>.
GetInstance
();
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
1078
var programmaticSuppressionsBuilder = PooledDictionary<Diagnostic, ImmutableHashSet<(string, LocalizableString)>.Builder>.
GetInstance
();
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
940
var nodeActionsByKind = PooledDictionary<TLanguageKindEnum, ArrayBuilder<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>>.
GetInstance
();
1026
var operationActionsByKind = PooledDictionary<OperationKind, ArrayBuilder<OperationAnalyzerAction>>.
GetInstance
();
Operations\ControlFlowGraphBuilder.cs (3)
69
_regionMap = PooledDictionary<BasicBlockBuilder, RegionBuilder>.
GetInstance
();
228
var continueDispatchAfterFinally = PooledDictionary<ControlFlowRegion, bool>.
GetInstance
();
3870
_labeledBlocks = PooledDictionary<ILabelSymbol, BasicBlockBuilder>.
GetInstance
();
Operations\ControlFlowGraphBuilder.ImplicitInstanceInfo.cs (2)
49
AnonymousTypePropertyValues = PooledDictionary<IPropertySymbol, IOperation>.
GetInstance
();
66
AnonymousTypePropertyValues = PooledDictionary<IPropertySymbol, IOperation>.
GetInstance
();
Microsoft.CodeAnalysis.CSharp (51)
Binder\DecisionDagBuilder.cs (4)
728
var tempIdentifierMap = PooledDictionary<BoundDagEvaluation, int>.
GetInstance
();
948
var uniqueNodes = PooledDictionary<BoundDecisionDagNode, BoundDecisionDagNode>.
GetInstance
();
1620
var stateIdentifierMap = PooledDictionary<DagState, int>.
GetInstance
();
1629
PooledDictionary<BoundDagEvaluation, int> tempIdentifierMap = PooledDictionary<BoundDagEvaluation, int>.
GetInstance
();
Binder\PatternExplainer.cs (1)
38
var dist = PooledDictionary<BoundDecisionDagNode, (int distance, BoundDecisionDagNode next)>.
GetInstance
();
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
127
var lookedInInterfaces = PooledDictionary<TypeSymbol, bool>.
GetInstance
();
BoundTree\BoundDecisionDag.cs (1)
96
var replacement = PooledDictionary<BoundDecisionDagNode, BoundDecisionDagNode>.
GetInstance
();
BoundTree\LengthBasedStringSwitchData.cs (1)
231
var countPerChar = PooledDictionary<char, int>.
GetInstance
();
CodeGen\CodeGenerator.cs (1)
435
_savedSequencePoints ??= PooledDictionary<object, TextSpan>.
GetInstance
();
CodeGen\Optimizer.cs (1)
66
var locals = PooledDictionary<LocalSymbol, LocalDefUseInfo>.
GetInstance
();
Compilation\CSharpCompilation.cs (1)
4532
_cache = PooledDictionary<Declaration, NamespaceOrTypeSymbol>.
GetInstance
();
Compilation\SyntaxAndDeclarationManager.cs (6)
52
var ordinalMapBuilder = PooledDictionary<SyntaxTree, int>.
GetInstance
();
53
var loadDirectiveMapBuilder = PooledDictionary<SyntaxTree, ImmutableArray<LoadDirective>>.
GetInstance
();
54
var loadedSyntaxTreeMapBuilder = PooledDictionary<string, SyntaxTree>.
GetInstance
();
55
var declMapBuilder = PooledDictionary<SyntaxTree, Lazy<RootSingleNamespaceDeclaration>>.
GetInstance
();
311
var ordinalMapBuilder = PooledDictionary<SyntaxTree, int>.
GetInstance
();
492
var ordinalMapBuilder = PooledDictionary<SyntaxTree, int>.
GetInstance
();
FlowAnalysis\AbstractFlowPass.cs (1)
211
_labels = PooledDictionary<LabelSymbol, TLocalState>.
GetInstance
();
FlowAnalysis\AbstractFlowPass.PendingBranchesCollection.cs (1)
117
_labeledBranches = PooledDictionary<LabelSymbol, ArrayBuilder<PendingBranch>>.
GetInstance
();
FlowAnalysis\ControlFlowPass.cs (1)
19
private readonly PooledDictionary<LabelSymbol, BoundNode> _labelsDefined = PooledDictionary<LabelSymbol, BoundNode>.
GetInstance
();
FlowAnalysis\DefiniteAssignment.cs (2)
43
private readonly PooledDictionary<VariableIdentifier, int> _variableSlot = PooledDictionary<VariableIdentifier, int>.
GetInstance
();
114
private readonly PooledDictionary<Symbol, Location> _unsafeAddressTakenVariables = PooledDictionary<Symbol, Location>.
GetInstance
();
FlowAnalysis\NullableWalker.cs (5)
227
=> _targetTypedAnalysisCompletionOpt ??= PooledDictionary<BoundExpression, Func<TypeWithAnnotations, TypeWithState>>.
GetInstance
();
509
_resultForPlaceholdersOpt ??= PooledDictionary<BoundValuePlaceholderBase, (BoundExpression? Replacement, VisitResult Result)>.
GetInstance
();
3053
_nestedFunctionVariables ??= PooledDictionary<MethodSymbol, Variables>.
GetInstance
();
4066
_placeholderLocalsOpt ??= PooledDictionary<object, PlaceholderLocal>.
GetInstance
();
8904
_methodGroupReceiverMapOpt ??= PooledDictionary<BoundExpression, TypeWithState>.
GetInstance
();
FlowAnalysis\NullableWalker.SnapshotManager.cs (1)
169
private readonly PooledDictionary<Symbol, int> _symbolToSlot = PooledDictionary<Symbol, int>.
GetInstance
();
FlowAnalysis\NullableWalker.Variables.cs (1)
123
private readonly PooledDictionary<VariableIdentifier, int> _variableSlot = PooledDictionary<VariableIdentifier, int>.
GetInstance
();
FlowAnalysis\NullableWalker_Patterns.cs (4)
367
var originalInputMap = PooledDictionary<int, BoundExpression>.
GetInstance
();
371
var tempMap = PooledDictionary<BoundDagTemp, (int slot, TypeSymbol type)>.
GetInstance
();
375
var nodeStateMap = PooledDictionary<BoundDecisionDagNode, (PossiblyConditionalState state, bool believedReachable)>.
GetInstance
();
378
var labelStateMap = PooledDictionary<LabelSymbol, (LocalState state, bool believedReachable)>.
GetInstance
();
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (2)
359
var closuresCapturingScopeVariables = PooledDictionary<Scope, PooledHashSet<NestedFunction>>.
GetInstance
();
363
var environmentsToScopes = PooledDictionary<ClosureEnvironment, Scope>.
GetInstance
();
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
320
private readonly PooledDictionary<LabelSymbol, ArrayBuilder<Scope>> _scopesAfterLabel = PooledDictionary<LabelSymbol, ArrayBuilder<Scope>>.
GetInstance
();
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (3)
43
private readonly PooledDictionary<BoundDecisionDagNode, LabelSymbol> _dagNodeLabels = PooledDictionary<BoundDecisionDagNode, LabelSymbol>.
GetInstance
();
1002
var whenExpressionMap = PooledDictionary<BoundExpression, (LabelSymbol LabelToWhenExpression, ArrayBuilder<BoundWhenDecisionDagNode> WhenNodes)>.
GetInstance
();
1003
var whenNodeMap = PooledDictionary<BoundWhenDecisionDagNode, (LabelSymbol LabelToWhenExpression, int WhenNodeIdentifier)>.
GetInstance
();
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (3)
56
private readonly PooledDictionary<BoundDagTemp, BoundExpression> _map = PooledDictionary<BoundDagTemp, BoundExpression>.
GetInstance
();
262
var placeholderValues = PooledDictionary<BoundEarlyValuePlaceholderBase, BoundExpression>.
GetInstance
();
288
var placeholderValues = PooledDictionary<BoundEarlyValuePlaceholderBase, BoundExpression>.
GetInstance
();
Lowering\LocalRewriter\LocalRewriter_BasePatternSwitchLocalRewriter.cs (1)
25
private readonly PooledDictionary<SyntaxNode, ArrayBuilder<BoundStatement>> _switchArms = PooledDictionary<SyntaxNode, ArrayBuilder<BoundStatement>>.
GetInstance
();
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
26
private readonly Dictionary<SyntaxNode, LabelSymbol> _sectionLabels = PooledDictionary<SyntaxNode, LabelSymbol>.
GetInstance
();
Lowering\SpillSequenceSpiller.cs (2)
235
var tempSubstitution = PooledDictionary<LocalSymbol, LocalSymbol>.
GetInstance
();
236
var receiverSubstitution = PooledDictionary<LocalSymbol, BoundComplexConditionalReceiver>.
GetInstance
();
Symbols\AbstractTypeMap.cs (1)
363
var map = PooledDictionary<TypeSymbol, int>.
GetInstance
();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1946
var map = PooledDictionary<MethodDefinitionHandle, PEMethodSymbol>.
GetInstance
();
Symbols\ReferenceManager.cs (1)
346
var assemblyReferencesBySimpleName = PooledDictionary<string, List<ReferencedAssemblyIdentity>>.
GetInstance
();
Symbols\Source\ConstantEvaluationHelpers.cs (1)
59
var graph = PooledDictionary<SourceFieldSymbolWithSyntaxReference, Node<SourceFieldSymbolWithSyntaxReference>>.
GetInstance
();
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3924
var fieldsByName = PooledDictionary<string, Symbol>.
GetInstance
();
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (4)
CompilationContext.cs (2)
439
var localsDictionary = PooledDictionary<string, (LocalSymbol, int)>.
GetInstance
();
1411
var displayClassVariablesBuilder = PooledDictionary<string, DisplayClassVariable>.
GetInstance
();
Symbols\EEMethodSymbol.cs (2)
157
var localsMap = PooledDictionary<LocalSymbol, LocalSymbol>.
GetInstance
();
170
var displayClassVariables = PooledDictionary<string, DisplayClassVariable>.
GetInstance
();
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.Native.cs (1)
396
var localKindsByName = PooledDictionary<string, LocalKind>.
GetInstance
();
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\ControlFlowGraphVerifier.cs (3)
117
var localFunctionsMap = PooledDictionary<IMethodSymbol, ControlFlowGraph>.
GetInstance
();
118
var anonymousFunctionsMap = PooledDictionary<IFlowAnonymousFunctionOperation, ControlFlowGraph>.
GetInstance
();
1374
var result = PooledObjects.PooledDictionary<ControlFlowRegion, int>.
GetInstance
();
CustomDataFlowAnalysis.cs (1)
34
var continueDispatchAfterFinally = PooledDictionary<ControlFlowRegion, bool>.
GetInstance
();
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\VisualBasicCompilation.vb (1)
3156
_cache = PooledDictionary(Of Declaration, NamespaceOrTypeSymbol).
GetInstance
()
Symbols\ReferenceManager.vb (1)
296
Dim assemblyReferencesBySimpleName = PooledDictionary(Of String, List(Of ReferencedAssemblyIdentity)).
GetInstance
()
Symbols\Source\SourceFieldSymbol.vb (1)
248
Dim graph = PooledDictionary(Of SourceFieldSymbol, DependencyInfo).
GetInstance
()
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (5)
CompilationContext.vb (2)
292
Dim localsDictionary = PooledDictionary(Of String, (LocalSymbol, Integer)).
GetInstance
()
1096
Dim displayClassVariablesBuilder = PooledDictionary(Of String, DisplayClassVariable).
GetInstance
()
Symbols\EEMethodSymbol.vb (3)
124
Dim localsMap = PooledDictionary(Of LocalSymbol, LocalSymbol).
GetInstance
()
156
Dim newDisplayClassVariables = PooledDictionary(Of String, DisplayClassVariable).
GetInstance
()
525
Dim localMap = PooledDictionary(Of LocalSymbol, LocalSymbol).
GetInstance
()