30 writes to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (30)
FlowAnalysis\AbstractFlowPass.cs (6)
134
StateWhenTrue
= whenTrue;
141
StateWhenTrue
= StateWhenFalse = default(TLocalState);
158
Join(ref
StateWhenTrue
, ref StateWhenFalse);
1733
StateWhenTrue
= unreachable;
3038
Join(ref
StateWhenTrue
, ref savedState);
3371
Join(ref this.
StateWhenTrue
, ref afterConsequenceWhenTrue);
FlowAnalysis\LocalDataFlowPass.cs (1)
137
Normalize(ref this.
StateWhenTrue
);
FlowAnalysis\NullableWalker.cs (14)
5844
LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref
StateWhenTrue
);
5887
ref LocalState stateToUpdate = ref whenTrue ? ref this.
StateWhenTrue
: ref this.StateWhenFalse;
6426
LearnFromNonNullTest(slot, ref
StateWhenTrue
);
7241
LearnFromNullTest(right, ref
StateWhenTrue
);
7247
LearnFromNullTest(left, ref
StateWhenTrue
);
7253
LearnFromNonNullTest(left, ref
StateWhenTrue
);
7258
LearnFromNonNullTest(right, ref
StateWhenTrue
);
7981
applyMemberPostConditions(receiverSlot, type, notNullMembers, ref
StateWhenTrue
);
7994
applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref
StateWhenTrue
);
8004
markMemberAsNotNull(receiverSlot, ref
StateWhenTrue
, unionValue);
8583
LearnFromNonNullTest(argument, ref
StateWhenTrue
);
8593
LearnFromNullTest(argument, ref
StateWhenTrue
);
12303
SetState(ref this.
StateWhenTrue
, slotToSet, NullableFlowState.NotNull);
13833
Join(ref
StateWhenTrue
, ref otherIsConditional ? ref other.StateWhenTrue : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (9)
550
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
556
var inputMaybeNull = GetState(ref this.
StateWhenTrue
, inputSlot).MayBeNull();
565
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
573
LearnFromNullTest(inputSlot, inputType, ref this.
StateWhenTrue
, markDependentSlotsNotNull: true);
594
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
603
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
891
Join(ref this.
StateWhenTrue
, ref stateAndReachable.state.StateWhenTrue);
896
Join(ref this.
StateWhenTrue
, ref stateAndReachable.state.State);
902
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)}"
997
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
1017
SetState(this.
StateWhenTrue
);
1023
SetConditionalState(this.StateWhenFalse, this.
StateWhenTrue
);
1829
trueState =
StateWhenTrue
;
2030
SetState(
StateWhenTrue
);
2393
TLocalState bodyState =
StateWhenTrue
;
2558
var leftTrue = this.
StateWhenTrue
;
2590
var resultTrue = this.
StateWhenTrue
;
2735
var (stateWhenTrue, stateWhenFalse) = (
StateWhenTrue
.Clone(), StateWhenFalse.Clone());
2751
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
2842
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
2925
bodyState = this.
StateWhenTrue
;
3340
var consequenceState = this.
StateWhenTrue
;
3360
var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (
StateWhenTrue
, StateWhenFalse) : (State, State);
3409
SetState(this.
StateWhenTrue
);
3632
PendingBranches.Add(new PendingBranch(node, this.
StateWhenTrue
, node.Label));
3638
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)
1948
SetState(
StateWhenTrue
);
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77
this.ProcessState(definitelyAssigned, this.
StateWhenTrue
, this.StateWhenFalse);
FlowAnalysis\NullableWalker.cs (13)
538
return $"{{{GetType().Name} WhenTrue:{Dump(
StateWhenTrue
)} WhenFalse:{Dump(StateWhenFalse)}{"}"}";
3150
var joinedState = this.
StateWhenTrue
.Clone();
3152
PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.
StateWhenTrue
, this.StateWhenFalse));
5572
var (stateWhenTrue, stateWhenFalse) = (
StateWhenTrue
.Clone(), StateWhenFalse.Clone());
5588
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
6483
var consequenceState = this.
StateWhenTrue
;
6752
=> this.IsConditionalState ? (this.
StateWhenTrue
.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable;
8163
SetState(
StateWhenTrue
);
8459
SetState(
StateWhenTrue
);
12741
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
12756
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
12945
var leftTrue = this.
StateWhenTrue
;
12962
var leftTrue = this.
StateWhenTrue
;
FlowAnalysis\NullableWalker_Patterns.cs (8)
364
? new PossiblyConditionalState(nullableWalker.
StateWhenTrue
, nullableWalker.StateWhenFalse)
552
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);
567
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);
576
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);
597
gotoNode(p.WhenTrue, isFalseTest ? this.StateWhenFalse : this.
StateWhenTrue
, nodeBelievedReachable);
598
gotoNode(p.WhenFalse, isFalseTest ? this.
StateWhenTrue
: this.StateWhenFalse, nodeBelievedReachable);
605
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);
658
gotoNode(w.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable);