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; 2962Join(ref StateWhenFalse, ref savedState); 3290Join(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)
2993Join(ref joinedState, ref this.StateWhenFalse); 5303LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5346ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 5883LearnFromNonNullTest(slot, ref StateWhenFalse); 6510LearnFromNonNullTest(right, ref StateWhenFalse); 6516LearnFromNonNullTest(left, ref StateWhenFalse); 7212applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenFalse); 7224applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref StateWhenFalse); 7780LearnFromNonNullTest(argument, ref StateWhenFalse); 7790LearnFromNullTest(argument, ref StateWhenFalse); 11588LearnFromNullTest(operand, ref StateWhenFalse); 12230Join(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; 2658var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2674SetConditionalState(StateWhenFalse, StateWhenTrue); 2765SetConditionalState(StateWhenFalse, StateWhenTrue); 2849breakState = this.StateWhenFalse; 3259var alternativeState = this.StateWhenFalse; 3278var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3326TLocalState breakState = this.StateWhenFalse; 3551this.SetState(this.StateWhenFalse); 3555PendingBranches.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)
488return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 2994PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5088var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5104SetConditionalState(StateWhenFalse, StateWhenTrue); 5940var alternativeState = this.StateWhenFalse; 6208=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7368SetState(StateWhenFalse); 7668var originalWhenFalse = StateWhenFalse.Clone(); 11293SetConditionalState(StateWhenFalse, StateWhenTrue); 11308SetConditionalState(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);