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)
3089Join(ref joinedState, ref this.StateWhenFalse); 5516LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5559ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 6097LearnFromNonNullTest(slot, ref StateWhenFalse); 6864LearnFromNonNullTest(right, ref StateWhenFalse); 6870LearnFromNonNullTest(left, ref StateWhenFalse); 7607applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenFalse); 7619applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref StateWhenFalse); 8175LearnFromNonNullTest(argument, ref StateWhenFalse); 8185LearnFromNullTest(argument, ref StateWhenFalse); 12323LearnFromNullTest(operand, ref StateWhenFalse); 12965Join(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);
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)
496return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3090PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5244var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5260SetConditionalState(StateWhenFalse, StateWhenTrue); 6154var alternativeState = this.StateWhenFalse; 6422=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7763SetState(StateWhenFalse); 8063var originalWhenFalse = StateWhenFalse.Clone(); 11924SetConditionalState(StateWhenFalse, StateWhenTrue); 11939SetConditionalState(StateWhenFalse, StateWhenTrue); 12129var leftFalse = this.StateWhenFalse; 12146var leftFalse = this.StateWhenFalse;
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);