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
);
1680
StateWhenFalse
= unreachable;
2990
Join(ref
StateWhenFalse
, ref savedState);
3323
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)
3114
Join(ref joinedState, ref this.
StateWhenFalse
);
5732
LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref
StateWhenFalse
: ref StateWhenTrue);
5775
ref LocalState stateToUpdate = ref whenTrue ? ref this.StateWhenTrue : ref this.
StateWhenFalse
;
6313
LearnFromNonNullTest(slot, ref
StateWhenFalse
);
7128
LearnFromNonNullTest(right, ref
StateWhenFalse
);
7134
LearnFromNonNullTest(left, ref
StateWhenFalse
);
7859
applyMemberPostConditions(receiverSlot, type, notNullMembers, ref
StateWhenFalse
);
7871
applyMemberPostConditions(receiverSlot, type, notNullWhenFalseMembers, ref
StateWhenFalse
);
8427
LearnFromNonNullTest(argument, ref
StateWhenFalse
);
8437
LearnFromNullTest(argument, ref
StateWhenFalse
);
12669
LearnFromNullTest(operand, ref
StateWhenFalse
);
13313
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
)}"
948
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
963
SetState(this.
StateWhenFalse
);
974
SetConditionalState(this.
StateWhenFalse
, this.StateWhenTrue);
1781
TLocalState falseState =
StateWhenFalse
;
2345
TLocalState breakState =
StateWhenFalse
;
2510
var leftFalse = this.
StateWhenFalse
;
2542
var resultFalse = this.
StateWhenFalse
;
2686
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
2702
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2793
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
2877
breakState = this.
StateWhenFalse
;
3292
var alternativeState = this.
StateWhenFalse
;
3311
var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (StateWhenTrue,
StateWhenFalse
) : (State, State);
3359
TLocalState breakState = this.
StateWhenFalse
;
3584
this.SetState(this.
StateWhenFalse
);
3588
PendingBranches.Add(new PendingBranch(node, this.
StateWhenFalse
, node.Label));
FlowAnalysis\DefiniteAssignment.cs (1)
1946
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
)}{"}"}";
3115
PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.
StateWhenFalse
));
5460
var (stateWhenTrue, stateWhenFalse) = (StateWhenTrue.Clone(),
StateWhenFalse
.Clone());
5476
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
6370
var alternativeState = this.
StateWhenFalse
;
6638
=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.
StateWhenFalse
.Reachable) : this.State.Reachable;
8015
SetState(
StateWhenFalse
);
8315
var originalWhenFalse =
StateWhenFalse
.Clone();
12270
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
12285
SetConditionalState(
StateWhenFalse
, StateWhenTrue);
12475
var leftFalse = this.
StateWhenFalse
;
12492
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);