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;
2989
Join(ref
StateWhenFalse
, ref savedState);
3322
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)
3089
Join(ref joinedState, ref this.
StateWhenFalse
);
5516
LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref
StateWhenFalse
: ref StateWhenTrue);
5559
ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.
StateWhenFalse
;
6097
LearnFromNonNullTest(slot, ref
StateWhenFalse
);
6864
LearnFromNonNullTest(right, ref
StateWhenFalse
);
6870
LearnFromNonNullTest(left, ref
StateWhenFalse
);
7607
applyMemberPostConditions(receiverSlot, type, notNullMembers, ref
StateWhenFalse
);
7619
applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref
StateWhenFalse
);
8175
LearnFromNonNullTest(argument, ref
StateWhenFalse
);
8185
LearnFromNullTest(argument, ref
StateWhenFalse
);
12323
LearnFromNullTest(operand, ref
StateWhenFalse
);
12965
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);
39 references to StateWhenFalse
Microsoft.CodeAnalysis.CSharp (39)
FlowAnalysis\AbstractFlowPass.cs (17)
228
? $"true: {Dump(this.StateWhenTrue)} false: {Dump(this.
StateWhenFalse
)}"
948
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
963
SetState(this.
StateWhenFalse
);
974
SetConditionalState(this.
StateWhenFalse
, this.StateWhenTrue);
1782
TLocalState falseState =
StateWhenFalse
;
2344
TLocalState breakState =
StateWhenFalse
;
2509
var leftFalse = this.
StateWhenFalse
;
2541
var resultFalse = this.
StateWhenFalse
;
2685
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
2701
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2792
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2876
breakState = this.
StateWhenFalse
;
3291
var alternativeState = this.
StateWhenFalse
;
3310
var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue,
StateWhenFalse
) : (State, State);
3358
TLocalState breakState = this.
StateWhenFalse
;
3583
this.SetState(this.
StateWhenFalse
);
3587
PendingBranches.Add(new PendingBranch(node, this.
StateWhenFalse
, node.Label));
FlowAnalysis\DefiniteAssignment.cs (1)
1995
var whenFail =
StateWhenFalse
;
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77
this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.
StateWhenFalse
);
FlowAnalysis\NullableWalker.cs (12)
496
return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(
StateWhenFalse
)}{"}"}";
3090
PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.
StateWhenFalse
));
5244
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
5260
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
6154
var alternativeState = this.
StateWhenFalse
;
6422
=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.
StateWhenFalse
.Reachable) : this.State.Reachable;
7763
SetState(
StateWhenFalse
);
8063
var originalWhenFalse =
StateWhenFalse
.Clone();
11924
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
11939
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
12129
var leftFalse = this.
StateWhenFalse
;
12146
var leftFalse = this.
StateWhenFalse
;
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);