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; 2968Join(ref StateWhenFalse, ref savedState); 3301Join(ref this.StateWhenFalse, ref afterConsequenceWhenFalse);
FlowAnalysis\AlwaysAssignedWalker.cs (1)
127Join(ref _endOfRegionState, ref StateWhenFalse);
FlowAnalysis\LocalDataFlowPass.cs (1)
138Normalize(ref this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (12)
3089Join(ref joinedState, ref this.StateWhenFalse); 5400LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5443ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 5981LearnFromNonNullTest(slot, ref StateWhenFalse); 6715LearnFromNonNullTest(right, ref StateWhenFalse); 6721LearnFromNonNullTest(left, ref StateWhenFalse); 7439applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenFalse); 7451applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref StateWhenFalse); 8007LearnFromNonNullTest(argument, ref StateWhenFalse); 8017LearnFromNullTest(argument, ref StateWhenFalse); 11886LearnFromNullTest(operand, ref StateWhenFalse); 12528Join(ref StateWhenFalse, ref otherIsConditional ? ref other.StateWhenFalse : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (6)
611MarkDependentSlotsNotNull(inputSlot, inputType, ref this.StateWhenFalse); 614LearnFromNullTest(inputSlot, inputType, ref this.StateWhenFalse, markDependentSlotsNotNull: false); 625learnFromNonNullTest(inputSlot, ref this.StateWhenFalse); 781Join(ref this.StateWhenFalse, ref stateAndReachable.state.StateWhenFalse); 786Join(ref this.StateWhenFalse, ref stateAndReachable.state.State); 792Join(ref this.StateWhenFalse, ref stateAndReachable.state.StateWhenFalse);
37 references to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (37)
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; 2486var leftFalse = this.StateWhenFalse; 2520var resultFalse = this.StateWhenFalse; 2664var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2680SetConditionalState(StateWhenFalse, StateWhenTrue); 2771SetConditionalState(StateWhenFalse, StateWhenTrue); 2855breakState = this.StateWhenFalse; 3270var alternativeState = this.StateWhenFalse; 3289var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3337TLocalState breakState = this.StateWhenFalse; 3562this.SetState(this.StateWhenFalse); 3566PendingBranches.Add(new PendingBranch(node, this.StateWhenFalse, node.Label));
FlowAnalysis\DefiniteAssignment.cs (1)
1994var whenFail = StateWhenFalse;
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (10)
496return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3090PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5190var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5206SetConditionalState(StateWhenFalse, StateWhenTrue); 6038var alternativeState = this.StateWhenFalse; 6306=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7595SetState(StateWhenFalse); 7895var originalWhenFalse = StateWhenFalse.Clone(); 11591SetConditionalState(StateWhenFalse, StateWhenTrue); 11606SetConditionalState(StateWhenFalse, StateWhenTrue);
FlowAnalysis\NullableWalker_Patterns.cs (8)
362? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.StateWhenFalse) 604gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 619gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable & inputMaybeNull); 628gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 648gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable); 649gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.StateWhenFalse, nodeBelievedReachable); 657gotoNode(p.WhenFalse, this.StateWhenFalse, nodeBelievedReachable); 710gotoNode(w.WhenFalse, this.StateWhenFalse, nodeBelievedReachable);