26 writes to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (26)
FlowAnalysis\AbstractFlowPass.cs (6)
135StateWhenFalse = whenFalse; 141StateWhenTrue = StateWhenFalse = default(TLocalState); 158Join(ref StateWhenTrue, ref StateWhenFalse); 1681StateWhenFalse = unreachable; 2991Join(ref StateWhenFalse, ref savedState); 3324Join(ref this.StateWhenFalse, ref afterConsequenceWhenFalse);
FlowAnalysis\AlwaysAssignedWalker.cs (1)
128Join(ref _endOfRegionState, ref StateWhenFalse);
FlowAnalysis\LocalDataFlowPass.cs (1)
139Normalize(ref this.StateWhenFalse);
FlowAnalysis\NullableWalker_Patterns.cs (6)
562MarkDependentSlotsNotNull(inputSlot, inputType, ref this.StateWhenFalse); 565LearnFromNullTest(inputSlot, inputType, ref this.StateWhenFalse, markDependentSlotsNotNull: false); 576learnFromNonNullTest(inputSlot, ref this.StateWhenFalse); 899Join(ref this.StateWhenFalse, ref stateAndReachable.state.StateWhenFalse); 904Join(ref this.StateWhenFalse, ref stateAndReachable.state.State); 910Join(ref this.StateWhenFalse, ref stateAndReachable.state.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (12)
3202Join(ref joinedState, ref this.StateWhenFalse); 5900LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5943ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 6483LearnFromNonNullTest(slot, ref StateWhenFalse); 7319LearnFromNonNullTest(right, ref StateWhenFalse); 7325LearnFromNonNullTest(left, ref StateWhenFalse); 8067applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenFalse); 8080applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref StateWhenFalse); 8673LearnFromNonNullTest(argument, ref StateWhenFalse); 8683LearnFromNullTest(argument, ref StateWhenFalse); 13284LearnFromNullTest(operand, ref StateWhenFalse); 13988Join(ref StateWhenFalse, ref otherIsConditional ? ref other.StateWhenFalse : ref other.State);
40 references to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (40)
FlowAnalysis\AbstractFlowPass.cs (17)
228? $"true: {Dump(this.StateWhenTrue)} false: {Dump(this.StateWhenFalse)}" 949SetConditionalState(StateWhenFalse, StateWhenTrue); 964SetState(this.StateWhenFalse); 975SetConditionalState(this.StateWhenFalse, this.StateWhenTrue); 1782TLocalState falseState = StateWhenFalse; 2346TLocalState breakState = StateWhenFalse; 2511var leftFalse = this.StateWhenFalse; 2543var resultFalse = this.StateWhenFalse; 2687var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2703SetConditionalState(StateWhenFalse, StateWhenTrue); 2794SetConditionalState(StateWhenFalse, StateWhenTrue); 2878breakState = this.StateWhenFalse; 3293var alternativeState = this.StateWhenFalse; 3312var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3360TLocalState breakState = this.StateWhenFalse; 3585this.SetState(this.StateWhenFalse); 3589PendingBranches.Add(new PendingBranch(node, this.StateWhenFalse, node.Label));
FlowAnalysis\DefiniteAssignment.cs (2)
1947var whenFail = StateWhenFalse; 2374var whenFalse = StateWhenFalse.Clone();
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.StateWhenFalse);
FlowAnalysis\NullableWalker_Patterns.cs (8)
365? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.StateWhenFalse) 555gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable, from: p, whenTrueBranch: false); 570gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable & inputMaybeNull, from: p, whenTrueBranch: false); 579gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable, from: p, whenTrueBranch: false); 599gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable, from: p, whenTrueBranch: true); 600gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.StateWhenFalse, nodeBelievedReachable, from: p, whenTrueBranch: false); 608gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable, from: p, whenTrueBranch: false); 661gotoNode(w.WhenFalse, this.StateWhenFalse, nodeBelievedReachable, from: w, whenTrueBranch: false);
FlowAnalysis\NullableWalker.cs (12)
538return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3203PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5612var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5644SetConditionalState(StateWhenFalse, StateWhenTrue); 6540var alternativeState = this.StateWhenFalse; 6808=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 8241SetState(StateWhenFalse); 8542var originalWhenFalse = StateWhenFalse.Clone(); 12887SetConditionalState(StateWhenFalse, StateWhenTrue); 12902SetConditionalState(StateWhenFalse, StateWhenTrue); 13092var leftFalse = this.StateWhenFalse; 13109var leftFalse = this.StateWhenFalse;