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)
3115Join(ref joinedState, ref this.StateWhenFalse); 5804LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5847ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 6387LearnFromNonNullTest(slot, ref StateWhenFalse); 7202LearnFromNonNullTest(right, ref StateWhenFalse); 7208LearnFromNonNullTest(left, ref StateWhenFalse); 7933applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenFalse); 7946applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref StateWhenFalse); 8551LearnFromNonNullTest(argument, ref StateWhenFalse); 8561LearnFromNullTest(argument, ref StateWhenFalse); 13083LearnFromNullTest(operand, ref StateWhenFalse); 13778Join(ref StateWhenFalse, ref otherIsConditional ? ref other.StateWhenFalse : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (6)
558MarkDependentSlotsNotNull(inputSlot, inputType, ref this.StateWhenFalse); 561LearnFromNullTest(inputSlot, inputType, ref this.StateWhenFalse, markDependentSlotsNotNull: false); 572learnFromNonNullTest(inputSlot, ref this.StateWhenFalse); 890Join(ref this.StateWhenFalse, ref stateAndReachable.state.StateWhenFalse); 895Join(ref this.StateWhenFalse, ref stateAndReachable.state.State); 901Join(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)
521return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3116PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5532var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5548SetConditionalState(StateWhenFalse, StateWhenTrue); 6444var alternativeState = this.StateWhenFalse; 6712=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 8114SetState(StateWhenFalse); 8414var originalWhenFalse = StateWhenFalse.Clone(); 12686SetConditionalState(StateWhenFalse, StateWhenTrue); 12701SetConditionalState(StateWhenFalse, StateWhenTrue); 12891var leftFalse = this.StateWhenFalse; 12908var leftFalse = this.StateWhenFalse;
FlowAnalysis\NullableWalker_Patterns.cs (8)
362? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.StateWhenFalse) 551gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 566gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable & inputMaybeNull); 575gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 595gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable); 596gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.StateWhenFalse, nodeBelievedReachable); 604gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 657gotoNode(w.WhenFalse, this.StateWhenFalse, nodeBelievedReachable);