26 writes to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (26)
FlowAnalysis\AbstractFlowPass.cs (6)
135StateWhenFalse = whenFalse; 141StateWhenTrue = StateWhenFalse = default(TLocalState); 158Join(ref StateWhenTrue, ref StateWhenFalse); 1729StateWhenFalse = unreachable; 3039Join(ref StateWhenFalse, ref savedState); 3372Join(ref this.StateWhenFalse, ref afterConsequenceWhenFalse);
FlowAnalysis\AlwaysAssignedWalker.cs (1)
128Join(ref _endOfRegionState, ref StateWhenFalse);
FlowAnalysis\LocalDataFlowPass.cs (1)
138Normalize(ref this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (12)
3151Join(ref joinedState, ref this.StateWhenFalse); 5844LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5887ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 6427LearnFromNonNullTest(slot, ref StateWhenFalse); 7242LearnFromNonNullTest(right, ref StateWhenFalse); 7248LearnFromNonNullTest(left, ref StateWhenFalse); 7982applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenFalse); 7995applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref StateWhenFalse); 8588LearnFromNonNullTest(argument, ref StateWhenFalse); 8598LearnFromNullTest(argument, ref StateWhenFalse); 13138LearnFromNullTest(operand, ref StateWhenFalse); 13834Join(ref StateWhenFalse, ref otherIsConditional ? ref other.StateWhenFalse : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (6)
560MarkDependentSlotsNotNull(inputSlot, inputType, ref this.StateWhenFalse); 563LearnFromNullTest(inputSlot, inputType, ref this.StateWhenFalse, markDependentSlotsNotNull: false); 574learnFromNonNullTest(inputSlot, ref this.StateWhenFalse); 892Join(ref this.StateWhenFalse, ref stateAndReachable.state.StateWhenFalse); 897Join(ref this.StateWhenFalse, ref stateAndReachable.state.State); 903Join(ref this.StateWhenFalse, ref stateAndReachable.state.StateWhenFalse);
39 references to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (39)
FlowAnalysis\AbstractFlowPass.cs (17)
228? $"true: {Dump(this.StateWhenTrue)} false: {Dump(this.StateWhenFalse)}" 997SetConditionalState(StateWhenFalse, StateWhenTrue); 1012SetState(this.StateWhenFalse); 1023SetConditionalState(this.StateWhenFalse, this.StateWhenTrue); 1830TLocalState falseState = StateWhenFalse; 2394TLocalState breakState = StateWhenFalse; 2559var leftFalse = this.StateWhenFalse; 2591var resultFalse = this.StateWhenFalse; 2735var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2751SetConditionalState(StateWhenFalse, StateWhenTrue); 2842SetConditionalState(StateWhenFalse, StateWhenTrue); 2926breakState = this.StateWhenFalse; 3341var alternativeState = this.StateWhenFalse; 3360var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3408TLocalState breakState = this.StateWhenFalse; 3633this.SetState(this.StateWhenFalse); 3637PendingBranches.Add(new PendingBranch(node, this.StateWhenFalse, node.Label));
FlowAnalysis\DefiniteAssignment.cs (1)
1947var whenFail = StateWhenFalse;
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (12)
538return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3152PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5572var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5588SetConditionalState(StateWhenFalse, StateWhenTrue); 6484var alternativeState = this.StateWhenFalse; 6752=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 8156SetState(StateWhenFalse); 8457var originalWhenFalse = StateWhenFalse.Clone(); 12741SetConditionalState(StateWhenFalse, StateWhenTrue); 12756SetConditionalState(StateWhenFalse, StateWhenTrue); 12946var leftFalse = this.StateWhenFalse; 12963var leftFalse = this.StateWhenFalse;
FlowAnalysis\NullableWalker_Patterns.cs (8)
364? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.StateWhenFalse) 553gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 568gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable & inputMaybeNull); 577gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 597gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable); 598gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.StateWhenFalse, nodeBelievedReachable); 606gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 659gotoNode(w.WhenFalse, this.StateWhenFalse, nodeBelievedReachable);