2 writes to IsConditionalState
Microsoft.CodeAnalysis.CSharp (2)
FlowAnalysis\AbstractFlowPass.cs (2)
132
IsConditionalState
= true;
142
IsConditionalState
= false;
102 references to IsConditionalState
Microsoft.CodeAnalysis.CSharp (102)
FlowAnalysis\AbstractFlowPass.cs (21)
148
if (!
IsConditionalState
)
156
if (
IsConditionalState
)
227
return
IsConditionalState
673
Debug.Assert(!this.
IsConditionalState
);
827
Debug.Assert(!this.
IsConditionalState
);
923
Debug.Assert(!
IsConditionalState
);
936
Debug.Assert(!
IsConditionalState
);
941
else if (
IsConditionalState
)
2685
else if (
IsConditionalState
&& binary.Right.ConstantValueOpt is { IsBoolean: true } rightConstant)
2701
if (
IsConditionalState
&& isEquals(binary) != leftConstant.BooleanValue)
2938
Debug.Assert(!
IsConditionalState
);
2974
Debug.Assert(!
IsConditionalState
);
2988
if (
IsConditionalState
)
3019
Debug.Assert(!
IsConditionalState
);
3258
Debug.Assert(!this.
IsConditionalState
);
3266
Debug.Assert(!this.
IsConditionalState
);
3311
var conditionalAfterConsequence =
IsConditionalState
;
3315
if (!conditionalAfterConsequence && !
IsConditionalState
)
3369
Debug.Assert(!this.
IsConditionalState
);
3466
Debug.Assert(!this.
IsConditionalState
);
3581
Debug.Assert(this.
IsConditionalState
);
FlowAnalysis\AlwaysAssignedWalker.cs (1)
123
if (this.
IsConditionalState
)
FlowAnalysis\DefiniteAssignment.cs (4)
1106
Debug.Assert(!
IsConditionalState
);
1488
Debug.Assert(!
IsConditionalState
);
1899
Debug.Assert(!this.
IsConditionalState
);
2372
Debug.Assert(
IsConditionalState
);
FlowAnalysis\DefiniteAssignment.LocalFunctions.cs (1)
70
Debug.Assert(!
IsConditionalState
);
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
72
if (this.
IsConditionalState
)
FlowAnalysis\LocalDataFlowPass.cs (1)
136
if (
IsConditionalState
)
FlowAnalysis\NullableWalker_Patterns.cs (7)
38
Debug.Assert(!
IsConditionalState
);
364
return nullableWalker.
IsConditionalState
395
if (!
IsConditionalState
)
464
Debug.Assert(!
IsConditionalState
);
659
Debug.Assert(this.
IsConditionalState
);
894
switch (
IsConditionalState
, stateAndReachable.state.IsConditionalState)
1249
Debug.Assert(!
IsConditionalState
);
FlowAnalysis\NullableWalker.cs (66)
370
|| !
IsConditionalState
536
if (this.
IsConditionalState
)
1937
Debug.Assert(!walker.
IsConditionalState
);
2005
Debug.Assert(!
IsConditionalState
);
2728
Debug.Assert(!
IsConditionalState
);
3096
Debug.Assert(!
IsConditionalState
);
3150
Debug.Assert(!
IsConditionalState
);
3199
if (
IsConditionalState
)
3203
PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.
IsConditionalState
, this.StateWhenTrue, this.StateWhenFalse));
3629
Debug.Assert(!
IsConditionalState
);
3655
Debug.Assert(!
IsConditionalState
);
3769
Debug.Assert(!
IsConditionalState
);
3824
Debug.Assert(!
IsConditionalState
);
4337
Debug.Assert(!
IsConditionalState
);
5070
Debug.Assert(!
IsConditionalState
);
5365
Debug.Assert(!
IsConditionalState
);
5369
Debug.Assert(!
IsConditionalState
);
5399
Debug.Assert(!
IsConditionalState
);
5403
Debug.Assert(!
IsConditionalState
);
5479
Debug.Assert(!
IsConditionalState
);
5610
if (
IsConditionalState
&& binary.Right.ConstantValueOpt is { IsBoolean: true } rightConstant)
5642
if (
IsConditionalState
&& isEquals(binary) != leftConstant.BooleanValue)
5686
Debug.Assert(!
IsConditionalState
);
5739
Debug.Assert(!
IsConditionalState
);
5869
Debug.Assert(!
IsConditionalState
);
6241
Debug.Assert(!
IsConditionalState
);
6370
Debug.Assert(!
IsConditionalState
);
6393
if (
IsConditionalState
)
6408
Debug.Assert(!
IsConditionalState
);
6480
if (
IsConditionalState
)
6808
=> this.
IsConditionalState
? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable;
8064
if (
IsConditionalState
)
8157
Debug.Assert(!
IsConditionalState
);
8221
Debug.Assert(!
IsConditionalState
);
8239
if (
IsConditionalState
)
8246
if (
IsConditionalState
)
8269
Debug.Assert(!
IsConditionalState
);
8288
Debug.Assert(!this.
IsConditionalState
);
8361
Debug.Assert(!this.
IsConditionalState
);
8535
if (!
IsConditionalState
&& !hasConditionalPostCondition(receiverType, parameterAnnotations, refKind, parameter))
8547
Debug.Assert(!
IsConditionalState
);
8552
Debug.Assert(!
IsConditionalState
);
8652
if (maybeNullWhenTrue && maybeNullWhenFalse && !
IsConditionalState
&& !(notNullWhenTrue && notNullWhenFalse))
8657
&& !
IsConditionalState
9347
trackMembers: !
IsConditionalState
));
9456
Debug.Assert(!
IsConditionalState
);
9904
Debug.Assert(!trackMembers || !
IsConditionalState
);
10516
Debug.Assert(!
IsConditionalState
);
10670
Debug.Assert(!
IsConditionalState
);
11120
Debug.Assert(!
IsConditionalState
);
11297
Debug.Assert(!
IsConditionalState
);
11800
Debug.Assert(!
IsConditionalState
);
11993
Debug.Assert(!
IsConditionalState
);
12382
Debug.Assert(!
IsConditionalState
);
12423
Debug.Assert(!
IsConditionalState
);
12878
Debug.Assert(!
IsConditionalState
);
12886
if (
IsConditionalState
)
12901
if (
IsConditionalState
)
13086
Debug.Assert(
IsConditionalState
);
13240
Debug.Assert(!this.
IsConditionalState
);
13260
Debug.Assert(!this.
IsConditionalState
);
13346
Debug.Assert(!
IsConditionalState
);
13354
Debug.Assert(!
IsConditionalState
);
13440
Debug.Assert(!
IsConditionalState
);
13549
Debug.Assert(!this.
IsConditionalState
);
13985
if (
IsConditionalState
)