26 writes to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (26)
FlowAnalysis\AbstractFlowPass.cs (6)
135StateWhenFalse = whenFalse; 141StateWhenTrue = StateWhenFalse = default(TLocalState); 158Join(ref StateWhenTrue, ref StateWhenFalse); 1682StateWhenFalse = unreachable; 2990Join(ref StateWhenFalse, ref savedState); 3323Join(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); 5578LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5621ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 6159LearnFromNonNullTest(slot, ref StateWhenFalse); 6927LearnFromNonNullTest(right, ref StateWhenFalse); 6933LearnFromNonNullTest(left, ref StateWhenFalse); 7665applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenFalse); 7677applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref StateWhenFalse); 8233LearnFromNonNullTest(argument, ref StateWhenFalse); 8243LearnFromNullTest(argument, ref StateWhenFalse); 12448LearnFromNullTest(operand, ref StateWhenFalse); 13090Join(ref StateWhenFalse, ref otherIsConditional ? ref other.StateWhenFalse : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (6)
613MarkDependentSlotsNotNull(inputSlot, inputType, ref this.StateWhenFalse); 616LearnFromNullTest(inputSlot, inputType, ref this.StateWhenFalse, markDependentSlotsNotNull: false); 627learnFromNonNullTest(inputSlot, ref this.StateWhenFalse); 783Join(ref this.StateWhenFalse, ref stateAndReachable.state.StateWhenFalse); 788Join(ref this.StateWhenFalse, ref stateAndReachable.state.State); 794Join(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)}" 948SetConditionalState(StateWhenFalse, StateWhenTrue); 963SetState(this.StateWhenFalse); 974SetConditionalState(this.StateWhenFalse, this.StateWhenTrue); 1783TLocalState falseState = StateWhenFalse; 2345TLocalState breakState = StateWhenFalse; 2510var leftFalse = this.StateWhenFalse; 2542var resultFalse = this.StateWhenFalse; 2686var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2702SetConditionalState(StateWhenFalse, StateWhenTrue); 2793SetConditionalState(StateWhenFalse, StateWhenTrue); 2877breakState = this.StateWhenFalse; 3292var alternativeState = this.StateWhenFalse; 3311var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3359TLocalState breakState = this.StateWhenFalse; 3584this.SetState(this.StateWhenFalse); 3588PendingBranches.Add(new PendingBranch(node, this.StateWhenFalse, node.Label));
FlowAnalysis\DefiniteAssignment.cs (1)
1995var 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)); 5306var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5322SetConditionalState(StateWhenFalse, StateWhenTrue); 6216var alternativeState = this.StateWhenFalse; 6484=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7821SetState(StateWhenFalse); 8121var originalWhenFalse = StateWhenFalse.Clone(); 12049SetConditionalState(StateWhenFalse, StateWhenTrue); 12064SetConditionalState(StateWhenFalse, StateWhenTrue); 12254var leftFalse = this.StateWhenFalse; 12271var leftFalse = this.StateWhenFalse;
FlowAnalysis\NullableWalker_Patterns.cs (8)
362? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.StateWhenFalse) 606gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 621gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable & inputMaybeNull); 630gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 650gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable); 651gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.StateWhenFalse, nodeBelievedReachable); 659gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 712gotoNode(w.WhenFalse, this.StateWhenFalse, nodeBelievedReachable);