30 writes to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (30)
FlowAnalysis\AbstractFlowPass.cs (6)
134
StateWhenTrue
= whenTrue;
141
StateWhenTrue
= StateWhenFalse = default(TLocalState);
158
Join(ref
StateWhenTrue
, ref StateWhenFalse);
1695
StateWhenTrue
= unreachable;
3000
Join(ref
StateWhenTrue
, ref savedState);
3333
Join(ref this.
StateWhenTrue
, ref afterConsequenceWhenTrue);
FlowAnalysis\LocalDataFlowPass.cs (1)
138
Normalize(ref this.
StateWhenTrue
);
FlowAnalysis\NullableWalker_Patterns.cs (9)
552
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
558
var inputMaybeNull = GetState(ref this.
StateWhenTrue
, inputSlot).MayBeNull();
567
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
575
LearnFromNullTest(inputSlot, inputType, ref this.
StateWhenTrue
, markDependentSlotsNotNull: true);
596
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
605
learnFromNonNullTest(inputSlot, ref this.
StateWhenTrue
);
898
Join(ref this.
StateWhenTrue
, ref stateAndReachable.state.StateWhenTrue);
903
Join(ref this.
StateWhenTrue
, ref stateAndReachable.state.State);
909
Join(ref this.
StateWhenTrue
, ref stateAndReachable.state.StateWhenTrue);
FlowAnalysis\NullableWalker.cs (14)
5910
LearnFromNullTest(operandComparedToNull, ref nonNullCase ? ref StateWhenFalse : ref
StateWhenTrue
);
5953
ref LocalState stateToUpdate = ref whenTrue ? ref this.
StateWhenTrue
: ref this.StateWhenFalse;
6492
LearnFromNonNullTest(slot, ref
StateWhenTrue
);
7328
LearnFromNullTest(right, ref
StateWhenTrue
);
7334
LearnFromNullTest(left, ref
StateWhenTrue
);
7340
LearnFromNonNullTest(left, ref
StateWhenTrue
);
7345
LearnFromNonNullTest(right, ref
StateWhenTrue
);
8083
applyMemberPostConditions(receiverSlot, type, notNullMembers, ref
StateWhenTrue
);
8096
applyMemberPostConditions(receiverSlot, type, notNullWhenTrueMembers, ref
StateWhenTrue
);
8106
markMemberAsNotNull(receiverSlot, ref
StateWhenTrue
, unionValue);
8685
LearnFromNonNullTest(argument, ref
StateWhenTrue
);
8695
LearnFromNullTest(argument, ref
StateWhenTrue
);
12457
SetState(ref this.
StateWhenTrue
, slotToSet, NullableFlowState.NotNull);
14004
Join(ref
StateWhenTrue
, ref otherIsConditional ? ref other.StateWhenTrue : ref other.State);
48 references to StateWhenTrue
Microsoft.CodeAnalysis.CSharp (48)
FlowAnalysis\AbstractFlowPass_Switch.cs (4)
62
SetState(
StateWhenTrue
);
66
SetState(
StateWhenTrue
);
165
SetState(
StateWhenTrue
);
174
SetState(
StateWhenTrue
);
FlowAnalysis\AbstractFlowPass.cs (19)
159
SetState(
StateWhenTrue
);
228
? $"true: {Dump(this.
StateWhenTrue
)} false: {Dump(this.StateWhenFalse)}"
949
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
969
SetState(this.
StateWhenTrue
);
975
SetConditionalState(this.StateWhenFalse, this.
StateWhenTrue
);
1791
trueState =
StateWhenTrue
;
1992
SetState(
StateWhenTrue
);
2355
TLocalState bodyState =
StateWhenTrue
;
2520
var leftTrue = this.
StateWhenTrue
;
2552
var resultTrue = this.
StateWhenTrue
;
2697
var (stateWhenTrue, stateWhenFalse) = (
StateWhenTrue
.Clone(), StateWhenFalse.Clone());
2713
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
2804
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
2887
bodyState = this.
StateWhenTrue
;
3302
var consequenceState = this.
StateWhenTrue
;
3322
var (afterConsequenceWhenTrue, afterConsequenceWhenFalse) = conditionalAfterConsequence ? (
StateWhenTrue
, StateWhenFalse) : (State, State);
3371
SetState(this.
StateWhenTrue
);
3603
PendingBranches.Add(new PendingBranch(node, this.
StateWhenTrue
, node.Label));
3609
this.SetState(this.
StateWhenTrue
);
FlowAnalysis\AlwaysAssignedWalker.cs (1)
127
_endOfRegionState =
StateWhenTrue
.Clone();
FlowAnalysis\DefiniteAssignment.cs (2)
1957
SetState(
StateWhenTrue
);
2382
var whenTrue =
StateWhenTrue
.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)
554
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable, from: p, whenTrueBranch: true);
569
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable, from: p, whenTrueBranch: true);
578
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable, from: p, whenTrueBranch: true);
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);
607
gotoNode(p.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable, from: p, whenTrueBranch: true);
660
gotoNode(w.WhenTrue, this.
StateWhenTrue
, nodeBelievedReachable, from: w, whenTrueBranch: true);
FlowAnalysis\NullableWalker.cs (13)
538
return $"{{{GetType().Name} WhenTrue:{Dump(
StateWhenTrue
)} WhenFalse:{Dump(StateWhenFalse)}{"}"}";
3194
var joinedState = this.
StateWhenTrue
.Clone();
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
);
6549
var consequenceState = this.
StateWhenTrue
;
6818
=> this.IsConditionalState ? (this.
StateWhenTrue
.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable;
8265
SetState(
StateWhenTrue
);
8561
SetState(
StateWhenTrue
);
12904
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
12919
SetConditionalState(StateWhenFalse,
StateWhenTrue
);
13108
var leftTrue = this.
StateWhenTrue
;
13125
var leftTrue = this.
StateWhenTrue
;