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