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);
1679
StateWhenTrue
= unreachable;
2961
Join(ref
StateWhenTrue
, ref savedState);
3289
Join(ref this.
StateWhenTrue
, ref afterConsequenceWhenTrue);
FlowAnalysis\LocalDataFlowPass.cs (1)
137
Normalize(ref this.
StateWhenTrue
);
FlowAnalysis\NullableWalker.cs (13)
5303
LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref
StateWhenTrue
);
5346
ref LocalState stateToUpdate = ref whenTrue ? ref this.
StateWhenTrue
: ref this.StateWhenFalse;
5882
LearnFromNonNullTest(slot, ref
StateWhenTrue
);
6509
LearnFromNullTest(right, ref
StateWhenTrue
);
6515
LearnFromNullTest(left, ref
StateWhenTrue
);
6521
LearnFromNonNullTest(left, ref
StateWhenTrue
);
6526
LearnFromNonNullTest(right, ref
StateWhenTrue
);
7211
applyMemberPostConditions(receiverSlot, type, notNullMembers, ref
StateWhenTrue
);
7223
applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref
StateWhenTrue
);
7775
LearnFromNonNullTest(argument, ref
StateWhenTrue
);
7785
LearnFromNullTest(argument, ref
StateWhenTrue
);
10856
SetState(ref this.
StateWhenTrue
, containingSlot, NullableFlowState.NotNull);
12229
Join(ref
StateWhenTrue
, ref otherIsConditional ? ref other.StateWhenTrue : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (9)
601
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
607
var inputMaybeNull = GetState(ref this.
StateWhenTrue
, inputSlot).MayBeNull();
616
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
624
LearnFromNullTest(inputSlot, inputType, ref this.
StateWhenTrue
, markDependentSlotsNotNull: true);
645
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
654
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
780
Join(ref this.
StateWhenTrue
, ref stateAndReachable.state.StateWhenTrue);
785
Join(ref this.
StateWhenTrue
, ref stateAndReachable.state.State);
791
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)}"
949
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
969
SetState(this.
StateWhenTrue
);
975
SetConditionalState(this.StateWhenFalse, this.
StateWhenTrue
);
1775
trueState =
StateWhenTrue
;
1976
SetState(
StateWhenTrue
);
2337
TLocalState bodyState =
StateWhenTrue
;
2479
var leftTrue = this.
StateWhenTrue
;
2513
var resultTrue = this.
StateWhenTrue
;
2658
var (stateWhenTrue, stateWhenFalse) = (
StateWhenTrue
.Clone(), StateWhenFalse.Clone());
2674
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
2765
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
2848
bodyState = this.
StateWhenTrue
;
3258
var consequenceState = this.
StateWhenTrue
;
3278
var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (
StateWhenTrue
, StateWhenFalse) : (State, State);
3327
SetState(this.
StateWhenTrue
);
3550
PendingBranches.Add(new PendingBranch(node, this.
StateWhenTrue
, node.Label));
3556
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)
1983
SetState(
StateWhenTrue
);
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77
this.ProcessState(definitelyAssigned, this.
StateWhenTrue
, this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (11)
488
return $"{{{GetType().Name} WhenTrue:{Dump(
StateWhenTrue
)} WhenFalse:{Dump(StateWhenFalse)}{"}"}";
2992
var joinedState = this.
StateWhenTrue
.Clone();
2994
PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.
StateWhenTrue
, this.StateWhenFalse));
5088
var (stateWhenTrue, stateWhenFalse) = (
StateWhenTrue
.Clone(), StateWhenFalse.Clone());
5104
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
5939
var consequenceState = this.
StateWhenTrue
;
6208
=> this.IsConditionalState ? (this.
StateWhenTrue
.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable;
7375
SetState(
StateWhenTrue
);
7670
SetState(
StateWhenTrue
);
11293
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
11308
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
FlowAnalysis\NullableWalker_Patterns.cs (8)
362
? new PossiblyConditionalState(nullableWalker.
StateWhenTrue
, nullableWalker.StateWhenFalse)
603
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);
618
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);
627
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);
648
gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.
StateWhenTrue
, nodeBelievedReachable);
649
gotoNode(p.WhenFalse, isFalseTest ? this.
StateWhenTrue
: this.StateWhenFalse, nodeBelievedReachable);
656
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);
709
gotoNode(w.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);