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
);
1729
StateWhenFalse
= unreachable;
3039
Join(ref
StateWhenFalse
, ref savedState);
3372
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)
3115
Join(ref joinedState, ref this.
StateWhenFalse
);
5804
LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref
StateWhenFalse
: ref StateWhenTrue);
5847
ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.
StateWhenFalse
;
6387
LearnFromNonNullTest(slot, ref
StateWhenFalse
);
7202
LearnFromNonNullTest(right, ref
StateWhenFalse
);
7208
LearnFromNonNullTest(left, ref
StateWhenFalse
);
7933
applyMemberPostConditions(receiverSlot, type, notNullMembers, ref
StateWhenFalse
);
7946
applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref
StateWhenFalse
);
8551
LearnFromNonNullTest(argument, ref
StateWhenFalse
);
8561
LearnFromNullTest(argument, ref
StateWhenFalse
);
13083
LearnFromNullTest(operand, ref
StateWhenFalse
);
13778
Join(ref
StateWhenFalse
, ref otherIsConditional ? ref other.StateWhenFalse : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (6)
558
MarkDependentSlotsNotNull(inputSlot, inputType, ref this.
StateWhenFalse
);
561
LearnFromNullTest(inputSlot, inputType, ref this.
StateWhenFalse
, markDependentSlotsNotNull: false);
572
learnFromNonNullTest(inputSlot, ref this.
StateWhenFalse
);
890
Join(ref this.
StateWhenFalse
, ref stateAndReachable.state.StateWhenFalse);
895
Join(ref this.
StateWhenFalse
, ref stateAndReachable.state.State);
901
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
)}"
997
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
1012
SetState(this.
StateWhenFalse
);
1023
SetConditionalState(this.
StateWhenFalse
, this.StateWhenTrue);
1830
TLocalState falseState =
StateWhenFalse
;
2394
TLocalState breakState =
StateWhenFalse
;
2559
var leftFalse = this.
StateWhenFalse
;
2591
var resultFalse = this.
StateWhenFalse
;
2735
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
2751
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2842
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2926
breakState = this.
StateWhenFalse
;
3341
var alternativeState = this.
StateWhenFalse
;
3360
var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue,
StateWhenFalse
) : (State, State);
3408
TLocalState breakState = this.
StateWhenFalse
;
3633
this.SetState(this.
StateWhenFalse
);
3637
PendingBranches.Add(new PendingBranch(node, this.
StateWhenFalse
, node.Label));
FlowAnalysis\DefiniteAssignment.cs (1)
1947
var whenFail =
StateWhenFalse
;
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77
this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.
StateWhenFalse
);
FlowAnalysis\NullableWalker.cs (12)
521
return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(
StateWhenFalse
)}{"}"}";
3116
PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.
StateWhenFalse
));
5532
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
5548
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
6444
var alternativeState = this.
StateWhenFalse
;
6712
=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.
StateWhenFalse
.Reachable) : this.State.Reachable;
8114
SetState(
StateWhenFalse
);
8414
var originalWhenFalse =
StateWhenFalse
.Clone();
12686
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
12701
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
12891
var leftFalse = this.
StateWhenFalse
;
12908
var leftFalse = this.
StateWhenFalse
;
FlowAnalysis\NullableWalker_Patterns.cs (8)
362
? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.
StateWhenFalse
)
551
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable);
566
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable & inputMaybeNull);
575
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable);
595
gotoNode(p.WhenTrue, isFalseTest ? this.
StateWhenFalse
: this.StateWhenTrue, nodeBelievedReachable);
596
gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.
StateWhenFalse
, nodeBelievedReachable);
604
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable);
657
gotoNode(w.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable);