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)
138Normalize(ref this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (12)
3160Join(ref joinedState, ref this.StateWhenFalse); 5842LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5885ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 6425LearnFromNonNullTest(slot, ref StateWhenFalse); 7261LearnFromNonNullTest(right, ref StateWhenFalse); 7267LearnFromNonNullTest(left, ref StateWhenFalse); 8009applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenFalse); 8022applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref StateWhenFalse); 8615LearnFromNonNullTest(argument, ref StateWhenFalse); 8625LearnFromNullTest(argument, ref StateWhenFalse); 13206LearnFromNullTest(operand, ref StateWhenFalse); 13902Join(ref StateWhenFalse, ref otherIsConditional ? ref other.StateWhenFalse : ref other.State);
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);
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.cs (12)
538return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3161PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5570var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5586SetConditionalState(StateWhenFalse, StateWhenTrue); 6482var alternativeState = this.StateWhenFalse; 6750=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 8183SetState(StateWhenFalse); 8484var originalWhenFalse = StateWhenFalse.Clone(); 12809SetConditionalState(StateWhenFalse, StateWhenTrue); 12824SetConditionalState(StateWhenFalse, StateWhenTrue); 13014var leftFalse = this.StateWhenFalse; 13031var leftFalse = 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);