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
);
1577
StateWhenFalse
= unreachable;
2766
Join(ref
StateWhenFalse
, ref savedState);
3094
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)
2854
Join(ref joinedState, ref this.
StateWhenFalse
);
4796
LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref
StateWhenFalse
: ref StateWhenTrue);
4839
ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.
StateWhenFalse
;
5361
LearnFromNonNullTest(slot, ref
StateWhenFalse
);
5859
LearnFromNonNullTest(right, ref
StateWhenFalse
);
5865
LearnFromNonNullTest(left, ref
StateWhenFalse
);
6394
applyMemberPostConditions(receiverSlot, type, notNullMembers, ref
StateWhenFalse
);
6406
applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref
StateWhenFalse
);
6925
LearnFromNonNullTest(argument, ref
StateWhenFalse
);
6935
LearnFromNullTest(argument, ref
StateWhenFalse
);
10611
LearnFromNullTest(operand, ref
StateWhenFalse
);
11253
Join(ref
StateWhenFalse
, ref otherIsConditional ? ref other.StateWhenFalse : ref other.State);
FlowAnalysis\NullableWalker_Patterns.cs (6)
571
MarkDependentSlotsNotNull(inputSlot, inputType, ref this.
StateWhenFalse
);
574
LearnFromNullTest(inputSlot, inputType, ref this.
StateWhenFalse
, markDependentSlotsNotNull: false);
585
learnFromNonNullTest(inputSlot, ref this.
StateWhenFalse
);
741
Join(ref this.
StateWhenFalse
, ref stateAndReachable.state.StateWhenFalse);
746
Join(ref this.
StateWhenFalse
, ref stateAndReachable.state.State);
752
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
)}"
942
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
957
SetState(this.
StateWhenFalse
);
968
SetConditionalState(this.
StateWhenFalse
, this.StateWhenTrue);
1661
TLocalState falseState =
StateWhenFalse
;
2165
TLocalState breakState =
StateWhenFalse
;
2288
var leftFalse = this.
StateWhenFalse
;
2322
var resultFalse = this.
StateWhenFalse
;
2462
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
2478
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2569
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2653
breakState = this.
StateWhenFalse
;
3063
var alternativeState = this.
StateWhenFalse
;
3082
var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue,
StateWhenFalse
) : (State, State);
3130
TLocalState breakState = this.
StateWhenFalse
;
3355
this.SetState(this.
StateWhenFalse
);
3359
PendingBranches.Add(new PendingBranch(node, this.
StateWhenFalse
, node.Label));
FlowAnalysis\DefiniteAssignment.cs (1)
1856
var whenFail =
StateWhenFalse
;
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77
this.ProcessState(definitelyAssigned, this.StateWhenTrue, this.
StateWhenFalse
);
FlowAnalysis\NullableWalker.cs (10)
454
return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(
StateWhenFalse
)}{"}"}";
2855
PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.
StateWhenFalse
));
4600
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
4616
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
5418
var alternativeState = this.
StateWhenFalse
;
5653
=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.
StateWhenFalse
.Reachable) : this.State.Reachable;
6514
SetState(
StateWhenFalse
);
6813
var originalWhenFalse =
StateWhenFalse
.Clone();
10314
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
10329
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
FlowAnalysis\NullableWalker_Patterns.cs (8)
324
? new PossiblyConditionalState(nullableWalker.StateWhenTrue, nullableWalker.
StateWhenFalse
)
564
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable);
579
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable & inputMaybeNull);
588
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable);
608
gotoNode(p.WhenTrue, isFalseTest ? this.
StateWhenFalse
: this.StateWhenTrue, nodeBelievedReachable);
609
gotoNode(p.WhenFalse, isFalseTest ? this.StateWhenTrue : this.
StateWhenFalse
, nodeBelievedReachable);
617
gotoNode(p.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable);
670
gotoNode(w.WhenFalse, this.
StateWhenFalse
, nodeBelievedReachable);