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;
2958
Join(ref
StateWhenFalse
, ref savedState);
3286
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)
2932
Join(ref joinedState, ref this.
StateWhenFalse
);
5242
LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref
StateWhenFalse
: ref StateWhenTrue);
5285
ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.
StateWhenFalse
;
5822
LearnFromNonNullTest(slot, ref
StateWhenFalse
);
6449
LearnFromNonNullTest(right, ref
StateWhenFalse
);
6455
LearnFromNonNullTest(left, ref
StateWhenFalse
);
7151
applyMemberPostConditions(receiverSlot, type, notNullMembers, ref
StateWhenFalse
);
7163
applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref
StateWhenFalse
);
7719
LearnFromNonNullTest(argument, ref
StateWhenFalse
);
7729
LearnFromNullTest(argument, ref
StateWhenFalse
);
11527
LearnFromNullTest(operand, ref
StateWhenFalse
);
12169
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
;
2654
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
2670
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2761
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2845
breakState = this.
StateWhenFalse
;
3255
var alternativeState = this.
StateWhenFalse
;
3274
var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue,
StateWhenFalse
) : (State, State);
3322
TLocalState breakState = this.
StateWhenFalse
;
3547
this.SetState(this.
StateWhenFalse
);
3551
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)
487
return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(
StateWhenFalse
)}{"}"}";
2933
PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.
StateWhenFalse
));
5027
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
5043
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
5879
var alternativeState = this.
StateWhenFalse
;
6147
=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.
StateWhenFalse
.Reachable) : this.State.Reachable;
7307
SetState(
StateWhenFalse
);
7607
var originalWhenFalse =
StateWhenFalse
.Clone();
11232
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
11247
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);