29 writes to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (29)
FlowAnalysis\AbstractFlowPass.cs (6)
134StateWhenTrue = whenTrue; 141StateWhenTrue = StateWhenFalse = default(TLocalState); 158Join(ref StateWhenTrue, ref StateWhenFalse); 1685StateWhenTrue = unreachable; 2988Join(ref StateWhenTrue, ref savedState); 3321Join(ref this.StateWhenTrue, ref afterConsequenceWhenTrue);
FlowAnalysis\LocalDataFlowPass.cs (1)
137Normalize(ref this.StateWhenTrue);
FlowAnalysis\NullableWalker.cs (13)
5516LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref StateWhenTrue); 5559ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.StateWhenFalse; 6096LearnFromNonNullTest(slot, ref StateWhenTrue); 6863LearnFromNullTest(right, ref StateWhenTrue); 6869LearnFromNullTest(left, ref StateWhenTrue); 6875LearnFromNonNullTest(left, ref StateWhenTrue); 6880LearnFromNonNullTest(right, ref StateWhenTrue); 7606applyMemberPostConditions(receiverSlot, type, notNullMembers, ref StateWhenTrue); 7618applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref StateWhenTrue); 8170LearnFromNonNullTest(argument, ref StateWhenTrue); 8180LearnFromNullTest(argument, ref StateWhenTrue); 11487SetState(ref this.StateWhenTrue, containingSlot, NullableFlowState.NotNull); 12964Join(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);
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); 1781trueState = StateWhenTrue; 1982SetState(StateWhenTrue); 2343TLocalState bodyState = StateWhenTrue; 2508var leftTrue = this.StateWhenTrue; 2540var resultTrue = this.StateWhenTrue; 2685var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 2701SetConditionalState(StateWhenFalse, StateWhenTrue); 2792SetConditionalState(StateWhenFalse, StateWhenTrue); 2875bodyState = this.StateWhenTrue; 3290var consequenceState = this.StateWhenTrue; 3310var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue, StateWhenFalse) : (State, State); 3359SetState(this.StateWhenTrue); 3582PendingBranches.Add(new PendingBranch(node, this.StateWhenTrue, node.Label)); 3588this.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)
1996SetState(StateWhenTrue);
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (13)
496return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(StateWhenFalse)}{"}"}"; 3088var joinedState = this.StateWhenTrue.Clone(); 3090PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 5244var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(), StateWhenFalse.Clone()); 5260SetConditionalState(StateWhenFalse, StateWhenTrue); 6153var consequenceState = this.StateWhenTrue; 6422=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7770SetState(StateWhenTrue); 8065SetState(StateWhenTrue); 11924SetConditionalState(StateWhenFalse, StateWhenTrue); 11939SetConditionalState(StateWhenFalse, StateWhenTrue); 12128var leftTrue = this.StateWhenTrue; 12145var leftTrue = this.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);