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
);
1691
StateWhenFalse
= unreachable;
3001
Join(ref
StateWhenFalse
, ref savedState);
3334
Join(ref this.
StateWhenFalse
, ref afterConsequenceWhenFalse);
FlowAnalysis\AlwaysAssignedWalker.cs (1)
128
Join(ref _endOfRegionState, ref
StateWhenFalse
);
FlowAnalysis\LocalDataFlowPass.cs (1)
139
Normalize(ref this.
StateWhenFalse
);
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);
FlowAnalysis\NullableWalker.cs (12)
3195
Join(ref joinedState, ref this.
StateWhenFalse
);
5910
LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref
StateWhenFalse
: ref StateWhenTrue);
5953
ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.
StateWhenFalse
;
6493
LearnFromNonNullTest(slot, ref
StateWhenFalse
);
7329
LearnFromNonNullTest(right, ref
StateWhenFalse
);
7335
LearnFromNonNullTest(left, ref
StateWhenFalse
);
8084
applyMemberPostConditions(receiverSlot, type, notNullMembers, ref
StateWhenFalse
);
8097
applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref
StateWhenFalse
);
8690
LearnFromNonNullTest(argument, ref
StateWhenFalse
);
8700
LearnFromNullTest(argument, ref
StateWhenFalse
);
13301
LearnFromNullTest(operand, ref
StateWhenFalse
);
14005
Join(ref
StateWhenFalse
, ref otherIsConditional ? ref other.StateWhenFalse : ref other.State);
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);
1792
TLocalState falseState =
StateWhenFalse
;
2356
TLocalState breakState =
StateWhenFalse
;
2521
var leftFalse = this.
StateWhenFalse
;
2553
var resultFalse = this.
StateWhenFalse
;
2697
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
2713
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2804
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2888
breakState = this.
StateWhenFalse
;
3303
var alternativeState = this.
StateWhenFalse
;
3322
var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue,
StateWhenFalse
) : (State, State);
3370
TLocalState breakState = this.
StateWhenFalse
;
3604
this.SetState(this.
StateWhenFalse
);
3608
PendingBranches.Add(new PendingBranch(node, this.
StateWhenFalse
, node.Label));
FlowAnalysis\DefiniteAssignment.cs (2)
1956
var whenFail =
StateWhenFalse
;
2383
var whenFalse =
StateWhenFalse
.Clone();
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
77
this.ProcessState(definitelyAssigned, this.StateWhenTrue, 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);
FlowAnalysis\NullableWalker.cs (12)
538
return $"{{{GetType().Name} WhenTrue:{Dump(StateWhenTrue)} WhenFalse:{Dump(
StateWhenFalse
)}{"}"}";
3196
PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.
StateWhenFalse
));
5622
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
5654
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
6550
var alternativeState = this.
StateWhenFalse
;
6818
=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.
StateWhenFalse
.Reachable) : this.State.Reachable;
8258
SetState(
StateWhenFalse
);
8559
var originalWhenFalse =
StateWhenFalse
.Clone();
12904
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
12919
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
13109
var leftFalse = this.
StateWhenFalse
;
13126
var leftFalse = this.
StateWhenFalse
;