30 writes to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (30)
FlowAnalysis\AbstractFlowPass.cs (6)
134StateWhenTrue = whenTrue; 141StateWhenTrue = StateWhenFalse = default(TLocalState); 158Join(ref StateWhenTrue, ref StateWhenFalse); 1685StateWhenTrue = unreachable; 2990Join(ref StateWhenTrue, ref savedState); 3323Join(ref this.StateWhenTrue, ref afterConsequenceWhenTrue);
FlowAnalysis\LocalDataFlowPass.cs (1)
137Normalize(ref this.StateWhenTrue);
FlowAnalysis\NullableWalker.cs (14)
5842LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5885ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 6424LearnFromNonNullTest(slot, ref StateWhenTrue); 7260LearnFromNullTest(right, ref StateWhenTrue); 7266LearnFromNullTest(left, ref StateWhenTrue); 7272LearnFromNonNullTest(left, ref StateWhenTrue); 7277LearnFromNonNullTest(right, ref StateWhenTrue); 8008applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenTrue); 8021applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref StateWhenTrue); 8031markMemberAsNotNull(receiverSlot, ref StateWhenTrue, unionValue); 8610LearnFromNonNullTest(argument, ref StateWhenTrue); 8620LearnFromNullTest(argument, ref StateWhenTrue); 12371SetState(ref this.StateWhenTrue, slotToSet, NullableFlowState.NotNull); 13901Join(ref StateWhenTrue, ref otherIsConditional ? ref other.StateWhenTrue : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (9)
552learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 558var inputMaybeNull = GetState(ref this.StateWhenTrue, inputSlot).MayBeNull(); 567learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 575LearnFromNullTest(inputSlot, inputType, ref this.StateWhenTrue, markDependentSlotsNotNull: true); 596learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 605learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 898Join(ref this.StateWhenTrue, ref stateAndReachable.state.StateWhenTrue); 903Join(ref this.StateWhenTrue, ref stateAndReachable.state.State); 909Join(ref this.StateWhenTrue, ref stateAndReachable.state.StateWhenTrue);
48 references to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (48)
FlowAnalysis\AbstractFlowPass.cs (19)
159SetState(StateWhenTrue); 228? $"true: {Dump(this.StateWhenTrue)} false: {Dump(this.StateWhenFalse)}" 949SetConditionalState(StateWhenFalse, StateWhenTrue); 969SetState(this.StateWhenTrue); 975SetConditionalState(this.StateWhenFalse, this.StateWhenTrue); 1781trueState = StateWhenTrue; 1982SetState(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 (2)
1948SetState(StateWhenTrue); 2373var whenTrue = StateWhenTrue.Clone();
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (13)
538return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3159var joinedState = this.StateWhenTrue.Clone(); 3161PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5570var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5586SetConditionalState(StateWhenFalse, StateWhenTrue); 6481var consequenceState = this.StateWhenTrue; 6750=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 8190SetState(StateWhenTrue); 8486SetState(StateWhenTrue); 12809SetConditionalState(StateWhenFalse, StateWhenTrue); 12824SetConditionalState(StateWhenFalse, StateWhenTrue); 13013var leftTrue = this.StateWhenTrue; 13030var leftTrue = this.StateWhenTrue;
FlowAnalysis\NullableWalker_Patterns.cs (8)
365? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.StateWhenFalse) 554gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable, from: p, whenTrueBranch: true); 569gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable, from: p, whenTrueBranch: true); 578gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable, from: p, whenTrueBranch: true); 599gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable, from: p, whenTrueBranch: true); 600gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.StateWhenFalse, nodeBelievedReachable, from: p, whenTrueBranch: false); 607gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable, from: p, whenTrueBranch: true); 660gotoNode(w.WhenTrue, this.StateWhenTrue, nodeBelievedReachable, from: w, whenTrueBranch: true);