29 writes to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (29)
FlowAnalysis\AbstractFlowPass.cs (6)
135StateWhenTrue = whenTrue; 142StateWhenTrue = StateWhenFalse = default(TLocalState); 159Join(ref StateWhenTrue, ref StateWhenFalse); 1686StateWhenTrue = unreachable; 2968Join(ref StateWhenTrue, ref savedState); 3301Join(ref this.StateWhenTrue, ref afterConsequenceWhenTrue);
FlowAnalysis\LocalDataFlowPass.cs (1)
137Normalize(ref this.StateWhenTrue);
FlowAnalysis\NullableWalker.cs (13)
5389LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5432ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 5968LearnFromNonNullTest(slot, ref StateWhenTrue); 6597LearnFromNullTest(right, ref StateWhenTrue); 6603LearnFromNullTest(left, ref StateWhenTrue); 6609LearnFromNonNullTest(left, ref StateWhenTrue); 6614LearnFromNonNullTest(right, ref StateWhenTrue); 7311applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenTrue); 7323applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref StateWhenTrue); 7875LearnFromNonNullTest(argument, ref StateWhenTrue); 7885LearnFromNullTest(argument, ref StateWhenTrue); 10976SetState(ref this.StateWhenTrue, containingSlot, NullableFlowState.NotNull); 12349Join(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); 1782trueState = StateWhenTrue; 1983SetState(StateWhenTrue); 2344TLocalState bodyState = StateWhenTrue; 2486var leftTrue = this.StateWhenTrue; 2520var resultTrue = this.StateWhenTrue; 2665var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2681SetConditionalState(StateWhenFalse, StateWhenTrue); 2772SetConditionalState(StateWhenFalse, StateWhenTrue); 2855bodyState = this.StateWhenTrue; 3270var consequenceState = this.StateWhenTrue; 3290var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3339SetState(this.StateWhenTrue); 3562PendingBranches.Add(new PendingBranch(node, this.StateWhenTrue, node.Label)); 3568this.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)
2010SetState(StateWhenTrue);
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (11)
496return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3073var joinedState = this.StateWhenTrue.Clone(); 3075PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5174var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5190SetConditionalState(StateWhenFalse, StateWhenTrue); 6025var consequenceState = this.StateWhenTrue; 6294=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7475SetState(StateWhenTrue); 7770SetState(StateWhenTrue); 11413SetConditionalState(StateWhenFalse, StateWhenTrue); 11428SetConditionalState(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);