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; 2989Join(ref StateWhenFalse, ref savedState); 3322Join(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)
3095Join(ref joinedState, ref this.StateWhenFalse); 5523LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5566ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 6104LearnFromNonNullTest(slot, ref StateWhenFalse); 6871LearnFromNonNullTest(right, ref StateWhenFalse); 6877LearnFromNonNullTest(left, ref StateWhenFalse); 7609applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenFalse); 7621applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref StateWhenFalse); 8177LearnFromNonNullTest(argument, ref StateWhenFalse); 8187LearnFromNullTest(argument, ref StateWhenFalse); 12346LearnFromNullTest(operand, ref StateWhenFalse); 12988Join(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); 1782TLocalState falseState = StateWhenFalse; 2344TLocalState breakState = StateWhenFalse; 2509var leftFalse = this.StateWhenFalse; 2541var resultFalse = this.StateWhenFalse; 2685var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2701SetConditionalState(StateWhenFalse, StateWhenTrue); 2792SetConditionalState(StateWhenFalse, StateWhenTrue); 2876breakState = this.StateWhenFalse; 3291var alternativeState = this.StateWhenFalse; 3310var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3358TLocalState breakState = this.StateWhenFalse; 3583this.SetState(this.StateWhenFalse); 3587PendingBranches.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)
502return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3096PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5251var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5267SetConditionalState(StateWhenFalse, StateWhenTrue); 6161var alternativeState = this.StateWhenFalse; 6429=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7765SetState(StateWhenFalse); 8065var originalWhenFalse = StateWhenFalse.Clone(); 11947SetConditionalState(StateWhenFalse, StateWhenTrue); 11962SetConditionalState(StateWhenFalse, StateWhenTrue); 12152var leftFalse = this.StateWhenFalse; 12169var 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);