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; 2961Join(ref StateWhenTrue, ref savedState); 3289Join(ref this.StateWhenTrue, ref afterConsequenceWhenTrue);
FlowAnalysis\LocalDataFlowPass.cs (1)
137Normalize(ref this.StateWhenTrue);
FlowAnalysis\NullableWalker.cs (13)
5303LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5346ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 5882LearnFromNonNullTest(slot, ref StateWhenTrue); 6509LearnFromNullTest(right, ref StateWhenTrue); 6515LearnFromNullTest(left, ref StateWhenTrue); 6521LearnFromNonNullTest(left, ref StateWhenTrue); 6526LearnFromNonNullTest(right, ref StateWhenTrue); 7211applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenTrue); 7223applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref StateWhenTrue); 7775LearnFromNonNullTest(argument, ref StateWhenTrue); 7785LearnFromNullTest(argument, ref StateWhenTrue); 10856SetState(ref this.StateWhenTrue, containingSlot, NullableFlowState.NotNull); 12229Join(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; 2658var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2674SetConditionalState(StateWhenFalse, StateWhenTrue); 2765SetConditionalState(StateWhenFalse, StateWhenTrue); 2848bodyState = this.StateWhenTrue; 3258var consequenceState = this.StateWhenTrue; 3278var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3327SetState(this.StateWhenTrue); 3550PendingBranches.Add(new PendingBranch(node, this.StateWhenTrue, node.Label)); 3556this.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)
488return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 2992var joinedState = this.StateWhenTrue.Clone(); 2994PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5088var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5104SetConditionalState(StateWhenFalse, StateWhenTrue); 5939var consequenceState = this.StateWhenTrue; 6208=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7375SetState(StateWhenTrue); 7670SetState(StateWhenTrue); 11293SetConditionalState(StateWhenFalse, StateWhenTrue); 11308SetConditionalState(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);