26 writes to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (26)
FlowAnalysis\AbstractFlowPass.cs (6)
135
StateWhenFalse
= whenFalse;
141
StateWhenTrue =
StateWhenFalse
= default(TLocalState);
158
Join(ref StateWhenTrue, ref
StateWhenFalse
);
1681
StateWhenFalse
= unreachable;
2991
Join(ref
StateWhenFalse
, ref savedState);
3324
Join(ref this.
StateWhenFalse
, ref afterConsequenceWhenFalse);
FlowAnalysis\AlwaysAssignedWalker.cs (1)
128
Join(ref _endOfRegionState, ref
StateWhenFalse
);
FlowAnalysis\LocalDataFlowPass.cs (1)
138
Normalize(ref this.
StateWhenFalse
);
FlowAnalysis\NullableWalker.cs (12)
3160
Join(ref joinedState, ref this.
StateWhenFalse
);
5842
LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref
StateWhenFalse
: ref StateWhenTrue);
5885
ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.
StateWhenFalse
;
6425
LearnFromNonNullTest(slot, ref
StateWhenFalse
);
7261
LearnFromNonNullTest(right, ref
StateWhenFalse
);
7267
LearnFromNonNullTest(left, ref
StateWhenFalse
);
8009
applyMemberPostConditions(receiverSlot, type, notNullMembers, ref
StateWhenFalse
);
8022
applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref
StateWhenFalse
);
8615
LearnFromNonNullTest(argument, ref
StateWhenFalse
);
8625
LearnFromNullTest(argument, ref
StateWhenFalse
);
13206
LearnFromNullTest(operand, ref
StateWhenFalse
);
13902
Join(ref
StateWhenFalse
, ref otherIsConditional ? ref other.StateWhenFalse : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (6)
562
MarkDependentSlotsNotNull(inputSlot, inputType, ref this.
StateWhenFalse
);
565
LearnFromNullTest(inputSlot, inputType, ref this.
StateWhenFalse
, markDependentSlotsNotNull: false);
576
learnFromNonNullTest(inputSlot, ref this.
StateWhenFalse
);
899
Join(ref this.
StateWhenFalse
, ref stateAndReachable.state.StateWhenFalse);
904
Join(ref this.
StateWhenFalse
, ref stateAndReachable.state.State);
910
Join(ref this.
StateWhenFalse
, ref stateAndReachable.state.StateWhenFalse);
40 references to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (40)
FlowAnalysis\AbstractFlowPass.cs (17)
228
? $"true: {Dump(this.StateWhenTrue)} false: {Dump(this.
StateWhenFalse
)}"
949
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
964
SetState(this.
StateWhenFalse
);
975
SetConditionalState(this.
StateWhenFalse
, this.StateWhenTrue);
1782
TLocalState falseState =
StateWhenFalse
;
2346
TLocalState breakState =
StateWhenFalse
;
2511
var leftFalse = this.
StateWhenFalse
;
2543
var resultFalse = this.
StateWhenFalse
;
2687
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
2703
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2794
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2878
breakState = this.
StateWhenFalse
;
3293
var alternativeState = this.
StateWhenFalse
;
3312
var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue,
StateWhenFalse
) : (State, State);
3360
TLocalState breakState = this.
StateWhenFalse
;
3585
this.SetState(this.
StateWhenFalse
);
3589
PendingBranches.Add(new PendingBranch(node, this.
StateWhenFalse
, node.Label));
FlowAnalysis\DefiniteAssignment.cs (2)
1947
var whenFail =
StateWhenFalse
;
2374
var whenFalse =
StateWhenFalse
.Clone();
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77
this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.
StateWhenFalse
);
FlowAnalysis\NullableWalker.cs (12)
538
return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(
StateWhenFalse
)}{"}"}";
3161
PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.
StateWhenFalse
));
5570
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
5586
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
6482
var alternativeState = this.
StateWhenFalse
;
6750
=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.
StateWhenFalse
.Reachable) : this.State.Reachable;
8183
SetState(
StateWhenFalse
);
8484
var originalWhenFalse =
StateWhenFalse
.Clone();
12809
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
12824
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
13014
var leftFalse = this.
StateWhenFalse
;
13031
var leftFalse = this.
StateWhenFalse
;
FlowAnalysis\NullableWalker_Patterns.cs (8)
365
? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.
StateWhenFalse
)
555
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable, from: p, whenTrueBranch: false);
570
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable & inputMaybeNull, from: p, whenTrueBranch: false);
579
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable, from: p, whenTrueBranch: false);
599
gotoNode(p.WhenTrue, isFalseTest ? this.
StateWhenFalse
: this.StateWhenTrue, nodeBelievedReachable, from: p, whenTrueBranch: true);
600
gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.
StateWhenFalse
, nodeBelievedReachable, from: p, whenTrueBranch: false);
608
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable, from: p, whenTrueBranch: false);
661
gotoNode(w.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable, from: w, whenTrueBranch: false);