26 writes to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (26)
FlowAnalysis\AbstractFlowPass.cs (6)
136StateWhenFalse = whenFalse; 142StateWhenTrue = StateWhenFalse = default(TLocalState); 159Join(ref StateWhenTrue, ref StateWhenFalse); 1682StateWhenFalse = unreachable; 2969Join(ref StateWhenFalse, ref savedState); 3302Join(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)
3074Join(ref joinedState, ref this.StateWhenFalse); 5389LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5432ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 5969LearnFromNonNullTest(slot, ref StateWhenFalse); 6598LearnFromNonNullTest(right, ref StateWhenFalse); 6604LearnFromNonNullTest(left, ref StateWhenFalse); 7312applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenFalse); 7324applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref StateWhenFalse); 7880LearnFromNonNullTest(argument, ref StateWhenFalse); 7890LearnFromNullTest(argument, ref StateWhenFalse); 11708LearnFromNullTest(operand, ref StateWhenFalse); 12350Join(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); 1783TLocalState falseState = StateWhenFalse; 2345TLocalState breakState = StateWhenFalse; 2487var leftFalse = this.StateWhenFalse; 2521var resultFalse = this.StateWhenFalse; 2665var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2681SetConditionalState(StateWhenFalse, StateWhenTrue); 2772SetConditionalState(StateWhenFalse, StateWhenTrue); 2856breakState = this.StateWhenFalse; 3271var alternativeState = this.StateWhenFalse; 3290var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3338TLocalState breakState = this.StateWhenFalse; 3563this.SetState(this.StateWhenFalse); 3567PendingBranches.Add(new PendingBranch(node, this.StateWhenFalse, node.Label));
FlowAnalysis\DefiniteAssignment.cs (1)
2009var whenFail = StateWhenFalse;
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (10)
496return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3075PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5174var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5190SetConditionalState(StateWhenFalse, StateWhenTrue); 6026var alternativeState = this.StateWhenFalse; 6294=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7468SetState(StateWhenFalse); 7768var originalWhenFalse = StateWhenFalse.Clone(); 11413SetConditionalState(StateWhenFalse, StateWhenTrue); 11428SetConditionalState(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);