26 writes to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (26)
FlowAnalysis\AbstractFlowPass.cs (6)
136StateWhenFalse = whenFalse; 142StateWhenTrue = StateWhenFalse = default(TLocalState); 159Join(ref StateWhenTrue, ref StateWhenFalse); 1675StateWhenFalse = unreachable; 2958Join(ref StateWhenFalse, ref savedState); 3286Join(ref this.StateWhenFalse, ref afterConsequenceWhenFalse);
FlowAnalysis\AlwaysAssignedWalker.cs (1)
127Join(ref _endOfRegionState, ref StateWhenFalse);
FlowAnalysis\LocalDataFlowPass.cs (1)
138Normalize(ref this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (12)
2932Join(ref joinedState, ref this.StateWhenFalse); 5242LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5285ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 5822LearnFromNonNullTest(slot, ref StateWhenFalse); 6449LearnFromNonNullTest(right, ref StateWhenFalse); 6455LearnFromNonNullTest(left, ref StateWhenFalse); 7151applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenFalse); 7163applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref StateWhenFalse); 7719LearnFromNonNullTest(argument, ref StateWhenFalse); 7729LearnFromNullTest(argument, ref StateWhenFalse); 11527LearnFromNullTest(operand, ref StateWhenFalse); 12169Join(ref StateWhenFalse, ref otherIsConditional ? ref other.StateWhenFalse : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (6)
611MarkDependentSlotsNotNull(inputSlot, inputType, ref this.StateWhenFalse); 614LearnFromNullTest(inputSlot, inputType, ref this.StateWhenFalse, markDependentSlotsNotNull: false); 625learnFromNonNullTest(inputSlot, ref this.StateWhenFalse); 781Join(ref this.StateWhenFalse, ref stateAndReachable.state.StateWhenFalse); 786Join(ref this.StateWhenFalse, ref stateAndReachable.state.State); 792Join(ref this.StateWhenFalse, ref stateAndReachable.state.StateWhenFalse);
37 references to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (37)
FlowAnalysis\AbstractFlowPass.cs (17)
229? $"true: {Dump(this.StateWhenTrue)} false: {Dump(this.StateWhenFalse)}" 949SetConditionalState(StateWhenFalse, StateWhenTrue); 964SetState(this.StateWhenFalse); 975SetConditionalState(this.StateWhenFalse, this.StateWhenTrue); 1776TLocalState falseState = StateWhenFalse; 2338TLocalState breakState = StateWhenFalse; 2480var leftFalse = this.StateWhenFalse; 2514var resultFalse = this.StateWhenFalse; 2654var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2670SetConditionalState(StateWhenFalse, StateWhenTrue); 2761SetConditionalState(StateWhenFalse, StateWhenTrue); 2845breakState = this.StateWhenFalse; 3255var alternativeState = this.StateWhenFalse; 3274var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3322TLocalState breakState = this.StateWhenFalse; 3547this.SetState(this.StateWhenFalse); 3551PendingBranches.Add(new PendingBranch(node, this.StateWhenFalse, node.Label));
FlowAnalysis\DefiniteAssignment.cs (1)
1982var whenFail = StateWhenFalse;
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (10)
487return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 2933PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5027var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5043SetConditionalState(StateWhenFalse, StateWhenTrue); 5879var alternativeState = this.StateWhenFalse; 6147=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7307SetState(StateWhenFalse); 7607var originalWhenFalse = StateWhenFalse.Clone(); 11232SetConditionalState(StateWhenFalse, StateWhenTrue); 11247SetConditionalState(StateWhenFalse, StateWhenTrue);
FlowAnalysis\NullableWalker_Patterns.cs (8)
362? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.StateWhenFalse) 604gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 619gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable & inputMaybeNull); 628gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 648gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable); 649gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.StateWhenFalse, nodeBelievedReachable); 657gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 710gotoNode(w.WhenFalse, this.StateWhenFalse, nodeBelievedReachable);