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