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);
1684
StateWhenTrue
= unreachable;
2989
Join(ref
StateWhenTrue
, ref savedState);
3322
Join(ref this.
StateWhenTrue
, ref afterConsequenceWhenTrue);
FlowAnalysis\LocalDataFlowPass.cs (1)
137
Normalize(ref this.
StateWhenTrue
);
FlowAnalysis\NullableWalker.cs (13)
5732
LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref
StateWhenTrue
);
5775
ref LocalState stateToUpdate = ref whenTrue ? ref this.
StateWhenTrue
: ref this.StateWhenFalse;
6312
LearnFromNonNullTest(slot, ref
StateWhenTrue
);
7127
LearnFromNullTest(right, ref
StateWhenTrue
);
7133
LearnFromNullTest(left, ref
StateWhenTrue
);
7139
LearnFromNonNullTest(left, ref
StateWhenTrue
);
7144
LearnFromNonNullTest(right, ref
StateWhenTrue
);
7858
applyMemberPostConditions(receiverSlot, type, notNullMembers, ref
StateWhenTrue
);
7870
applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref
StateWhenTrue
);
8422
LearnFromNonNullTest(argument, ref
StateWhenTrue
);
8432
LearnFromNullTest(argument, ref
StateWhenTrue
);
11822
SetState(ref this.
StateWhenTrue
, containingSlot, NullableFlowState.NotNull);
13312
Join(ref
StateWhenTrue
, ref otherIsConditional ? ref other.StateWhenTrue : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (9)
548
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
554
var inputMaybeNull = GetState(ref this.
StateWhenTrue
, inputSlot).MayBeNull();
563
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
571
LearnFromNullTest(inputSlot, inputType, ref this.
StateWhenTrue
, markDependentSlotsNotNull: true);
592
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
601
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
889
Join(ref this.
StateWhenTrue
, ref stateAndReachable.state.StateWhenTrue);
894
Join(ref this.
StateWhenTrue
, ref stateAndReachable.state.State);
900
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
);
1780
trueState =
StateWhenTrue
;
1981
SetState(
StateWhenTrue
);
2344
TLocalState bodyState =
StateWhenTrue
;
2509
var leftTrue = this.
StateWhenTrue
;
2541
var resultTrue = this.
StateWhenTrue
;
2686
var (stateWhenTrue, stateWhenFalse) = (
StateWhenTrue
.Clone(), StateWhenFalse.Clone());
2702
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
2793
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
2876
bodyState = this.
StateWhenTrue
;
3291
var consequenceState = this.
StateWhenTrue
;
3311
var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (
StateWhenTrue
, StateWhenFalse) : (State, State);
3360
SetState(this.
StateWhenTrue
);
3583
PendingBranches.Add(new PendingBranch(node, this.
StateWhenTrue
, node.Label));
3589
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)}{"}"}";
3113
var joinedState = this.
StateWhenTrue
.Clone();
3115
PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.
StateWhenTrue
, this.StateWhenFalse));
5460
var (stateWhenTrue, stateWhenFalse) = (
StateWhenTrue
.Clone(), StateWhenFalse.Clone());
5476
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
6369
var consequenceState = this.
StateWhenTrue
;
6638
=> this.IsConditionalState ? (this.
StateWhenTrue
.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable;
8022
SetState(
StateWhenTrue
);
8317
SetState(
StateWhenTrue
);
12270
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
12285
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
12474
var leftTrue = this.
StateWhenTrue
;
12491
var leftTrue = this.
StateWhenTrue
;
FlowAnalysis\NullableWalker_Patterns.cs (8)
362
? new PossiblyConditionalState(nullableWalker.
StateWhenTrue
, nullableWalker.StateWhenFalse)
550
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);
565
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);
574
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);
595
gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.
StateWhenTrue
, nodeBelievedReachable);
596
gotoNode(p.WhenFalse, isFalseTest ? this.
StateWhenTrue
: this.StateWhenFalse, nodeBelievedReachable);
603
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);
656
gotoNode(w.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);