29 writes to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (29)
FlowAnalysis\AbstractFlowPass.cs (6)
135StateWhenTrue = whenTrue; 142StateWhenTrue = StateWhenFalse = default(TLocalState); 159Join(ref StateWhenTrue, ref StateWhenFalse); 1679StateWhenTrue = unreachable; 2957Join(ref StateWhenTrue, ref savedState); 3285Join(ref this.StateWhenTrue, ref afterConsequenceWhenTrue);
FlowAnalysis\LocalDataFlowPass.cs (1)
137Normalize(ref this.StateWhenTrue);
FlowAnalysis\NullableWalker.cs (13)
5242LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5285ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 5821LearnFromNonNullTest(slot, ref StateWhenTrue); 6448LearnFromNullTest(right, ref StateWhenTrue); 6454LearnFromNullTest(left, ref StateWhenTrue); 6460LearnFromNonNullTest(left, ref StateWhenTrue); 6465LearnFromNonNullTest(right, ref StateWhenTrue); 7150applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenTrue); 7162applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref StateWhenTrue); 7714LearnFromNonNullTest(argument, ref StateWhenTrue); 7724LearnFromNullTest(argument, ref StateWhenTrue); 10795SetState(ref this.StateWhenTrue, containingSlot, NullableFlowState.NotNull); 12168Join(ref StateWhenTrue, ref otherIsConditional ? ref other.StateWhenTrue : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (9)
601learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 607var inputMaybeNull = GetState(ref this.StateWhenTrue, inputSlot).MayBeNull(); 616learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 624LearnFromNullTest(inputSlot, inputType, ref this.StateWhenTrue, markDependentSlotsNotNull: true); 645learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 654learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 780Join(ref this.StateWhenTrue, ref stateAndReachable.state.StateWhenTrue); 785Join(ref this.StateWhenTrue, ref stateAndReachable.state.State); 791Join(ref this.StateWhenTrue, ref stateAndReachable.state.StateWhenTrue);
45 references to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (45)
FlowAnalysis\AbstractFlowPass.cs (19)
160SetState(StateWhenTrue); 229? $"true: {Dump(this.StateWhenTrue)} false: {Dump(this.StateWhenFalse)}" 949SetConditionalState(StateWhenFalse, StateWhenTrue); 969SetState(this.StateWhenTrue); 975SetConditionalState(this.StateWhenFalse, this.StateWhenTrue); 1775trueState = StateWhenTrue; 1976SetState(StateWhenTrue); 2337TLocalState bodyState = StateWhenTrue; 2479var leftTrue = this.StateWhenTrue; 2513var resultTrue = this.StateWhenTrue; 2654var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2670SetConditionalState(StateWhenFalse, StateWhenTrue); 2761SetConditionalState(StateWhenFalse, StateWhenTrue); 2844bodyState = this.StateWhenTrue; 3254var consequenceState = this.StateWhenTrue; 3274var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3323SetState(this.StateWhenTrue); 3546PendingBranches.Add(new PendingBranch(node, this.StateWhenTrue, node.Label)); 3552this.SetState(this.StateWhenTrue);
FlowAnalysis\AbstractFlowPass_Switch.cs (4)
62SetState(StateWhenTrue); 66SetState(StateWhenTrue); 165SetState(StateWhenTrue); 174SetState(StateWhenTrue);
FlowAnalysis\AlwaysAssignedWalker.cs (1)
126_endOfRegionState = StateWhenTrue.Clone();
FlowAnalysis\DefiniteAssignment.cs (1)
1983SetState(StateWhenTrue);
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (11)
487return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 2931var joinedState = this.StateWhenTrue.Clone(); 2933PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5027var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5043SetConditionalState(StateWhenFalse, StateWhenTrue); 5878var consequenceState = this.StateWhenTrue; 6147=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7314SetState(StateWhenTrue); 7609SetState(StateWhenTrue); 11232SetConditionalState(StateWhenFalse, StateWhenTrue); 11247SetConditionalState(StateWhenFalse, StateWhenTrue);
FlowAnalysis\NullableWalker_Patterns.cs (8)
362? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.StateWhenFalse) 603gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 618gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 627gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 648gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable); 649gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.StateWhenFalse, nodeBelievedReachable); 656gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 709gotoNode(w.WhenTrue, this.StateWhenTrue, nodeBelievedReachable);