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)
5844LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5887ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 6426LearnFromNonNullTest(slot, ref StateWhenTrue); 7241LearnFromNullTest(right, ref StateWhenTrue); 7247LearnFromNullTest(left, ref StateWhenTrue); 7253LearnFromNonNullTest(left, ref StateWhenTrue); 7258LearnFromNonNullTest(right, ref StateWhenTrue); 7981applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenTrue); 7994applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref StateWhenTrue); 8004markMemberAsNotNull(receiverSlot, ref StateWhenTrue, unionValue); 8583LearnFromNonNullTest(argument, ref StateWhenTrue); 8593LearnFromNullTest(argument, ref StateWhenTrue); 12303SetState(ref this.StateWhenTrue, slotToSet, NullableFlowState.NotNull); 13833Join(ref StateWhenTrue, ref otherIsConditional ? ref other.StateWhenTrue : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (9)
550learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 556var inputMaybeNull = GetState(ref this.StateWhenTrue, inputSlot).MayBeNull(); 565learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 573LearnFromNullTest(inputSlot, inputType, ref this.StateWhenTrue, markDependentSlotsNotNull: true); 594learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 603learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 891Join(ref this.StateWhenTrue, ref stateAndReachable.state.StateWhenTrue); 896Join(ref this.StateWhenTrue, ref stateAndReachable.state.State); 902Join(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)
538return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3150var joinedState = this.StateWhenTrue.Clone(); 3152PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5572var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5588SetConditionalState(StateWhenFalse, StateWhenTrue); 6483var consequenceState = this.StateWhenTrue; 6752=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 8163SetState(StateWhenTrue); 8459SetState(StateWhenTrue); 12741SetConditionalState(StateWhenFalse, StateWhenTrue); 12756SetConditionalState(StateWhenFalse, StateWhenTrue); 12945var leftTrue = this.StateWhenTrue; 12962var leftTrue = this.StateWhenTrue;
FlowAnalysis\NullableWalker_Patterns.cs (8)
364? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.StateWhenFalse) 552gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 567gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 576gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 597gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable); 598gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.StateWhenFalse, nodeBelievedReachable); 605gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 658gotoNode(w.WhenTrue, this.StateWhenTrue, nodeBelievedReachable);