30 writes to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (30)
FlowAnalysis\AbstractFlowPass.cs (6)
134StateWhenTrue = whenTrue; 141StateWhenTrue = StateWhenFalse = default(TLocalState); 158Join(ref StateWhenTrue, ref StateWhenFalse); 1733StateWhenTrue = unreachable; 3038Join(ref StateWhenTrue, ref savedState); 3371Join(ref this.StateWhenTrue, ref afterConsequenceWhenTrue);
FlowAnalysis\LocalDataFlowPass.cs (1)
137Normalize(ref this.StateWhenTrue);
FlowAnalysis\NullableWalker.cs (14)
5804LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5847ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 6386LearnFromNonNullTest(slot, ref StateWhenTrue); 7201LearnFromNullTest(right, ref StateWhenTrue); 7207LearnFromNullTest(left, ref StateWhenTrue); 7213LearnFromNonNullTest(left, ref StateWhenTrue); 7218LearnFromNonNullTest(right, ref StateWhenTrue); 7932applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenTrue); 7945applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref StateWhenTrue); 7962markMemberAsNotNull(receiverSlot, ref StateWhenTrue, unionValue); 8546LearnFromNonNullTest(argument, ref StateWhenTrue); 8556LearnFromNullTest(argument, ref StateWhenTrue); 12248SetState(ref this.StateWhenTrue, slotToSet, NullableFlowState.NotNull); 13777Join(ref StateWhenTrue, ref otherIsConditional ? ref other.StateWhenTrue : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (9)
548learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 554var inputMaybeNull = GetState(ref this.StateWhenTrue, inputSlot).MayBeNull(); 563learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 571LearnFromNullTest(inputSlot, inputType, ref this.StateWhenTrue, markDependentSlotsNotNull: true); 592learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 601learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 889Join(ref this.StateWhenTrue, ref stateAndReachable.state.StateWhenTrue); 894Join(ref this.StateWhenTrue, ref stateAndReachable.state.State); 900Join(ref this.StateWhenTrue, ref stateAndReachable.state.StateWhenTrue);
47 references to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (47)
FlowAnalysis\AbstractFlowPass.cs (19)
159SetState(StateWhenTrue); 228? $"true: {Dump(this.StateWhenTrue)} false: {Dump(this.StateWhenFalse)}" 997SetConditionalState(StateWhenFalse, StateWhenTrue); 1017SetState(this.StateWhenTrue); 1023SetConditionalState(this.StateWhenFalse, this.StateWhenTrue); 1829trueState = StateWhenTrue; 2030SetState(StateWhenTrue); 2393TLocalState bodyState = StateWhenTrue; 2558var leftTrue = this.StateWhenTrue; 2590var resultTrue = this.StateWhenTrue; 2735var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2751SetConditionalState(StateWhenFalse, StateWhenTrue); 2842SetConditionalState(StateWhenFalse, StateWhenTrue); 2925bodyState = this.StateWhenTrue; 3340var consequenceState = this.StateWhenTrue; 3360var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3409SetState(this.StateWhenTrue); 3632PendingBranches.Add(new PendingBranch(node, this.StateWhenTrue, node.Label)); 3638this.SetState(this.StateWhenTrue);
FlowAnalysis\AbstractFlowPass_Switch.cs (4)
62SetState(StateWhenTrue); 66SetState(StateWhenTrue); 165SetState(StateWhenTrue); 174SetState(StateWhenTrue);
FlowAnalysis\AlwaysAssignedWalker.cs (1)
127_endOfRegionState = StateWhenTrue.Clone();
FlowAnalysis\DefiniteAssignment.cs (1)
1948SetState(StateWhenTrue);
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (13)
521return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3114var joinedState = this.StateWhenTrue.Clone(); 3116PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5532var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5548SetConditionalState(StateWhenFalse, StateWhenTrue); 6443var consequenceState = this.StateWhenTrue; 6712=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 8121SetState(StateWhenTrue); 8416SetState(StateWhenTrue); 12686SetConditionalState(StateWhenFalse, StateWhenTrue); 12701SetConditionalState(StateWhenFalse, StateWhenTrue); 12890var leftTrue = this.StateWhenTrue; 12907var leftTrue = this.StateWhenTrue;
FlowAnalysis\NullableWalker_Patterns.cs (8)
362? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.StateWhenFalse) 550gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 565gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 574gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 595gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable); 596gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.StateWhenFalse, nodeBelievedReachable); 603gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 656gotoNode(w.WhenTrue, this.StateWhenTrue, nodeBelievedReachable);