26 writes to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (26)
FlowAnalysis\AbstractFlowPass.cs (6)
136
StateWhenFalse
= whenFalse;
142
StateWhenTrue =
StateWhenFalse
= default(TLocalState);
159
Join(ref StateWhenTrue, ref
StateWhenFalse
);
1675
StateWhenFalse
= unreachable;
2962
Join(ref
StateWhenFalse
, ref savedState);
3290
Join(ref this.
StateWhenFalse
, ref afterConsequenceWhenFalse);
FlowAnalysis\AlwaysAssignedWalker.cs (1)
127
Join(ref _endOfRegionState, ref
StateWhenFalse
);
FlowAnalysis\LocalDataFlowPass.cs (1)
138
Normalize(ref this.
StateWhenFalse
);
FlowAnalysis\NullableWalker.cs (12)
2993
Join(ref joinedState, ref this.
StateWhenFalse
);
5303
LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref
StateWhenFalse
: ref StateWhenTrue);
5346
ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.
StateWhenFalse
;
5883
LearnFromNonNullTest(slot, ref
StateWhenFalse
);
6510
LearnFromNonNullTest(right, ref
StateWhenFalse
);
6516
LearnFromNonNullTest(left, ref
StateWhenFalse
);
7212
applyMemberPostConditions(receiverSlot, type, notNullMembers, ref
StateWhenFalse
);
7224
applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref
StateWhenFalse
);
7780
LearnFromNonNullTest(argument, ref
StateWhenFalse
);
7790
LearnFromNullTest(argument, ref
StateWhenFalse
);
11588
LearnFromNullTest(operand, ref
StateWhenFalse
);
12230
Join(ref
StateWhenFalse
, ref otherIsConditional ? ref other.StateWhenFalse : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (6)
611
MarkDependentSlotsNotNull(inputSlot, inputType, ref this.
StateWhenFalse
);
614
LearnFromNullTest(inputSlot, inputType, ref this.
StateWhenFalse
, markDependentSlotsNotNull: false);
625
learnFromNonNullTest(inputSlot, ref this.
StateWhenFalse
);
781
Join(ref this.
StateWhenFalse
, ref stateAndReachable.state.StateWhenFalse);
786
Join(ref this.
StateWhenFalse
, ref stateAndReachable.state.State);
792
Join(ref this.
StateWhenFalse
, ref stateAndReachable.state.StateWhenFalse);
37 references to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (37)
FlowAnalysis\AbstractFlowPass.cs (17)
229
? $"true: {Dump(this.StateWhenTrue)} false: {Dump(this.
StateWhenFalse
)}"
949
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
964
SetState(this.
StateWhenFalse
);
975
SetConditionalState(this.
StateWhenFalse
, this.StateWhenTrue);
1776
TLocalState falseState =
StateWhenFalse
;
2338
TLocalState breakState =
StateWhenFalse
;
2480
var leftFalse = this.
StateWhenFalse
;
2514
var resultFalse = this.
StateWhenFalse
;
2658
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
2674
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2765
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2849
breakState = this.
StateWhenFalse
;
3259
var alternativeState = this.
StateWhenFalse
;
3278
var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue,
StateWhenFalse
) : (State, State);
3326
TLocalState breakState = this.
StateWhenFalse
;
3551
this.SetState(this.
StateWhenFalse
);
3555
PendingBranches.Add(new PendingBranch(node, this.
StateWhenFalse
, node.Label));
FlowAnalysis\DefiniteAssignment.cs (1)
1982
var whenFail =
StateWhenFalse
;
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77
this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.
StateWhenFalse
);
FlowAnalysis\NullableWalker.cs (10)
488
return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(
StateWhenFalse
)}{"}"}";
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);
5940
var alternativeState = this.
StateWhenFalse
;
6208
=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.
StateWhenFalse
.Reachable) : this.State.Reachable;
7368
SetState(
StateWhenFalse
);
7668
var originalWhenFalse =
StateWhenFalse
.Clone();
11293
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
11308
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
FlowAnalysis\NullableWalker_Patterns.cs (8)
362
? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.
StateWhenFalse
)
604
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable);
619
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable & inputMaybeNull);
628
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable);
648
gotoNode(p.WhenTrue, isFalseTest ? this.
StateWhenFalse
: this.StateWhenTrue, nodeBelievedReachable);
649
gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.
StateWhenFalse
, nodeBelievedReachable);
657
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable);
710
gotoNode(w.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable);