29 writes to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (29)
FlowAnalysis\AbstractFlowPass.cs (6)
135StateWhenTrue = whenTrue; 142StateWhenTrue = StateWhenFalse = default(TLocalState); 159Join(ref StateWhenTrue, ref StateWhenFalse); 1581StateWhenTrue = unreachable; 2765Join(ref StateWhenTrue, ref savedState); 3093Join(ref this.StateWhenTrue, ref afterConsequenceWhenTrue);
FlowAnalysis\LocalDataFlowPass.cs (1)
137Normalize(ref this.StateWhenTrue);
FlowAnalysis\NullableWalker.cs (13)
4796LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 4839ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 5360LearnFromNonNullTest(slot, ref StateWhenTrue); 5858LearnFromNullTest(right, ref StateWhenTrue); 5864LearnFromNullTest(left, ref StateWhenTrue); 5870LearnFromNonNullTest(left, ref StateWhenTrue); 5875LearnFromNonNullTest(right, ref StateWhenTrue); 6393applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenTrue); 6405applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref StateWhenTrue); 6920LearnFromNonNullTest(argument, ref StateWhenTrue); 6930LearnFromNullTest(argument, ref StateWhenTrue); 9914SetState(ref this.StateWhenTrue, containingSlot, NullableFlowState.NotNull); 11252Join(ref StateWhenTrue, ref otherIsConditional ? ref other.StateWhenTrue : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (9)
561learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 567var inputMaybeNull = GetState(ref this.StateWhenTrue, inputSlot).MayBeNull(); 576learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 584LearnFromNullTest(inputSlot, inputType, ref this.StateWhenTrue, markDependentSlotsNotNull: true); 605learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 614learnFromNonNullTest(inputSlot, ref this.StateWhenTrue); 740Join(ref this.StateWhenTrue, ref stateAndReachable.state.StateWhenTrue); 745Join(ref this.StateWhenTrue, ref stateAndReachable.state.State); 751Join(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)}" 942SetConditionalState(StateWhenFalse, StateWhenTrue); 962SetState(this.StateWhenTrue); 968SetConditionalState(this.StateWhenFalse, this.StateWhenTrue); 1660TLocalState trueState = StateWhenTrue; 1835SetState(StateWhenTrue); 2164TLocalState bodyState = StateWhenTrue; 2287var leftTrue = this.StateWhenTrue; 2321var resultTrue = this.StateWhenTrue; 2462var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2478SetConditionalState(StateWhenFalse, StateWhenTrue); 2569SetConditionalState(StateWhenFalse, StateWhenTrue); 2652bodyState = this.StateWhenTrue; 3062var consequenceState = this.StateWhenTrue; 3082var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3131SetState(this.StateWhenTrue); 3354PendingBranches.Add(new PendingBranch(node, this.StateWhenTrue, node.Label)); 3360this.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)
1857SetState(StateWhenTrue);
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (11)
454return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 2853var joinedState = this.StateWhenTrue.Clone(); 2855PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 4600var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 4616SetConditionalState(StateWhenFalse, StateWhenTrue); 5417var consequenceState = this.StateWhenTrue; 5653=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 6522SetState(StateWhenTrue); 6815SetState(StateWhenTrue); 10314SetConditionalState(StateWhenFalse, StateWhenTrue); 10329SetConditionalState(StateWhenFalse, StateWhenTrue);
FlowAnalysis\NullableWalker_Patterns.cs (8)
324? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.StateWhenFalse) 563gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 578gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 587gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 608gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.StateWhenTrue, nodeBelievedReachable); 609gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.StateWhenFalse, nodeBelievedReachable); 616gotoNode(p.WhenTrue, this.StateWhenTrue, nodeBelievedReachable); 669gotoNode(w.WhenTrue, this.StateWhenTrue, nodeBelievedReachable);