29 writes to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (29)
FlowAnalysis\AbstractFlowPass.cs (6)
134StateWhenTrue = whenTrue; 141StateWhenTrue = StateWhenFalse = default(TLocalState); 158Join(ref StateWhenTrue, ref StateWhenFalse); 1686StateWhenTrue = unreachable; 2990Join(ref StateWhenTrue, ref savedState); 3323Join(ref this.StateWhenTrue, ref afterConsequenceWhenTrue);
FlowAnalysis\LocalDataFlowPass.cs (1)
137Normalize(ref this.StateWhenTrue);
FlowAnalysis\NullableWalker.cs (13)
5574LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5617ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 6154LearnFromNonNullTest(slot, ref StateWhenTrue); 6963LearnFromNullTest(right, ref StateWhenTrue); 6969LearnFromNullTest(left, ref StateWhenTrue); 6975LearnFromNonNullTest(left, ref StateWhenTrue); 6980LearnFromNonNullTest(right, ref StateWhenTrue); 7701applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenTrue); 7713applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref StateWhenTrue); 8265LearnFromNonNullTest(argument, ref StateWhenTrue); 8275LearnFromNullTest(argument, ref StateWhenTrue); 11639SetState(ref this.StateWhenTrue, containingSlot, NullableFlowState.NotNull); 13128Join(ref StateWhenTrue, ref otherIsConditional ? ref other.StateWhenTrue : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (9)
603learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 609var inputMaybeNull = GetState(ref this.StateWhenTrue, inputSlot).MayBeNull(); 618learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 626LearnFromNullTest(inputSlot, inputType, ref this.StateWhenTrue, markDependentSlotsNotNull: true); 647learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 656learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 782Join(ref this.StateWhenTrue, ref stateAndReachable.state.StateWhenTrue); 787Join(ref this.StateWhenTrue, ref stateAndReachable.state.State); 793Join(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)}" 948SetConditionalState(StateWhenFalse, StateWhenTrue); 968SetState(this.StateWhenTrue); 974SetConditionalState(this.StateWhenFalse, this.StateWhenTrue); 1782trueState = StateWhenTrue; 1983SetState(StateWhenTrue); 2345TLocalState bodyState = StateWhenTrue; 2510var leftTrue = this.StateWhenTrue; 2542var resultTrue = this.StateWhenTrue; 2687var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2703SetConditionalState(StateWhenFalse, StateWhenTrue); 2794SetConditionalState(StateWhenFalse, StateWhenTrue); 2877bodyState = this.StateWhenTrue; 3292var consequenceState = this.StateWhenTrue; 3312var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3361SetState(this.StateWhenTrue); 3584PendingBranches.Add(new PendingBranch(node, this.StateWhenTrue, node.Label)); 3590this.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)
1947SetState(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)}{"}"}"; 3112var joinedState = this.StateWhenTrue.Clone(); 3114PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5302var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5318SetConditionalState(StateWhenFalse, StateWhenTrue); 6211var consequenceState = this.StateWhenTrue; 6480=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7865SetState(StateWhenTrue); 8160SetState(StateWhenTrue); 12086SetConditionalState(StateWhenFalse, StateWhenTrue); 12101SetConditionalState(StateWhenFalse, StateWhenTrue); 12290var leftTrue = this.StateWhenTrue; 12307var leftTrue = this.StateWhenTrue;
FlowAnalysis\NullableWalker_Patterns.cs (8)
362? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.StateWhenFalse) 605gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 620gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 629gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 650gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable); 651gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.StateWhenFalse, nodeBelievedReachable); 658gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 711gotoNode(w.WhenTrue, this.StateWhenTrue, nodeBelievedReachable);