FlowAnalysis\NullableWalker.cs (11)
208private PooledDictionary<BoundExpression, TypeWithState>? _methodGroupReceiverMapOpt;
210private PooledDictionary<BoundValuePlaceholderBase, (BoundExpression? Replacement, VisitResult Result)>? _resultForPlaceholdersOpt;
215private PooledDictionary<MethodSymbol, Variables>? _nestedFunctionVariables;
219private PooledDictionary<BoundExpression, Func<TypeWithAnnotations, TypeWithState>>? _targetTypedAnalysisCompletionOpt;
226private PooledDictionary<BoundExpression, Func<TypeWithAnnotations, TypeWithState>> TargetTypedAnalysisCompletion
227=> _targetTypedAnalysisCompletionOpt ??= PooledDictionary<BoundExpression, Func<TypeWithAnnotations, TypeWithState>>.GetInstance();
379private PooledDictionary<object, PlaceholderLocal>? _placeholderLocalsOpt;
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_Patterns.cs (15)
262var labelStateMap = LearnFromDecisionDag(node.Syntax, node.ReachabilityDecisionDag, node.Expression, expressionState, stateWhenNotNullOpt: null);
336private PooledDictionary<LabelSymbol, (LocalState state, bool believedReachable)> LearnFromDecisionDag(
367var originalInputMap = PooledDictionary<int, BoundExpression>.GetInstance();
371var tempMap = PooledDictionary<BoundDagTemp, (int slot, TypeSymbol type)>.GetInstance();
375var nodeStateMap = PooledDictionary<BoundDecisionDagNode, (PossiblyConditionalState state, bool believedReachable)>.GetInstance();
378var labelStateMap = PooledDictionary<LabelSymbol, (LocalState state, bool believedReachable)>.GetInstance();
852var labelStateMap = LearnFromDecisionDag(node.Syntax, node.ReachabilityDecisionDag, node.Expression, expressionState, stateWhenNotNullOpt: null);
942PooledDictionary<LabelSymbol, (LocalState state, bool believedReachable)> labelStateMap,
987PooledDictionary<LabelSymbol, (LocalState state, bool believedReachable)> labelStateMap,
999LocalState getStateForArm(BoundSwitchExpressionArm arm, PooledDictionary<LabelSymbol, (LocalState state, bool believedReachable)> labelStateMap)
1015var labelStateMap = LearnFromDecisionDag(node.Syntax, node.ReachabilityDecisionDag, node.Expression, expressionState, hasStateWhenNotNull ? conditionalStateWhenNotNull : null);
Lowering\SpillSequenceSpiller.cs (14)
23private readonly PooledDictionary<LocalSymbol, LocalSymbol> _tempSubstitution;
24private readonly PooledDictionary<LocalSymbol, BoundComplexConditionalReceiver> _receiverSubstitution;
28PooledDictionary<LocalSymbol, LocalSymbol> tempSubstitution,
29PooledDictionary<LocalSymbol, BoundComplexConditionalReceiver> receiverSubstitution,
184private readonly PooledDictionary<LocalSymbol, LocalSymbol> _tempSubstitution;
185private readonly PooledDictionary<LocalSymbol, BoundComplexConditionalReceiver> _receiverSubstitution;
188PooledDictionary<LocalSymbol, LocalSymbol> tempSubstitution,
189PooledDictionary<LocalSymbol, BoundComplexConditionalReceiver> receiverSubstitution,
198PooledDictionary<LocalSymbol, LocalSymbol> tempSubstitution,
199PooledDictionary<LocalSymbol, BoundComplexConditionalReceiver> receiverSubstitution,
235var tempSubstitution = PooledDictionary<LocalSymbol, LocalSymbol>.GetInstance();
236var receiverSubstitution = PooledDictionary<LocalSymbol, BoundComplexConditionalReceiver>.GetInstance();