2 writes to IsConditionalState
Microsoft.CodeAnalysis.CSharp (2)
FlowAnalysis\AbstractFlowPass.cs (2)
132
IsConditionalState
= true;
142
IsConditionalState
= false;
101 references to IsConditionalState
Microsoft.CodeAnalysis.CSharp (101)
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 (3)
1106
Debug.Assert(!
IsConditionalState
);
1488
Debug.Assert(!
IsConditionalState
);
1899
Debug.Assert(!this.
IsConditionalState
);
FlowAnalysis\DefiniteAssignment.LocalFunctions.cs (1)
70
Debug.Assert(!
IsConditionalState
);
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
72
if (this.
IsConditionalState
)
FlowAnalysis\LocalDataFlowPass.cs (1)
135
if (
IsConditionalState
)
FlowAnalysis\NullableWalker.cs (66)
370
|| !
IsConditionalState
536
if (this.
IsConditionalState
)
1900
Debug.Assert(!walker.
IsConditionalState
);
1968
Debug.Assert(!
IsConditionalState
);
2686
Debug.Assert(!
IsConditionalState
);
3054
Debug.Assert(!
IsConditionalState
);
3108
Debug.Assert(!
IsConditionalState
);
3157
if (
IsConditionalState
)
3161
PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.
IsConditionalState
, this.StateWhenTrue, this.StateWhenFalse));
3587
Debug.Assert(!
IsConditionalState
);
3613
Debug.Assert(!
IsConditionalState
);
3727
Debug.Assert(!
IsConditionalState
);
3782
Debug.Assert(!
IsConditionalState
);
4295
Debug.Assert(!
IsConditionalState
);
5028
Debug.Assert(!
IsConditionalState
);
5323
Debug.Assert(!
IsConditionalState
);
5327
Debug.Assert(!
IsConditionalState
);
5357
Debug.Assert(!
IsConditionalState
);
5361
Debug.Assert(!
IsConditionalState
);
5437
Debug.Assert(!
IsConditionalState
);
5568
if (
IsConditionalState
&& binary.Right.ConstantValueOpt is { IsBoolean: true } rightConstant)
5584
if (
IsConditionalState
&& isEquals(binary) != leftConstant.BooleanValue)
5628
Debug.Assert(!
IsConditionalState
);
5681
Debug.Assert(!
IsConditionalState
);
5811
Debug.Assert(!
IsConditionalState
);
6183
Debug.Assert(!
IsConditionalState
);
6312
Debug.Assert(!
IsConditionalState
);
6335
if (
IsConditionalState
)
6350
Debug.Assert(!
IsConditionalState
);
6422
if (
IsConditionalState
)
6750
=> this.
IsConditionalState
? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable;
8006
if (
IsConditionalState
)
8099
Debug.Assert(!
IsConditionalState
);
8163
Debug.Assert(!
IsConditionalState
);
8181
if (
IsConditionalState
)
8188
if (
IsConditionalState
)
8211
Debug.Assert(!
IsConditionalState
);
8230
Debug.Assert(!this.
IsConditionalState
);
8303
Debug.Assert(!this.
IsConditionalState
);
8477
if (!
IsConditionalState
&& !hasConditionalPostCondition(receiverType, parameterAnnotations, refKind, parameter))
8489
Debug.Assert(!
IsConditionalState
);
8494
Debug.Assert(!
IsConditionalState
);
8594
if (maybeNullWhenTrue && maybeNullWhenFalse && !
IsConditionalState
&& !(notNullWhenTrue && notNullWhenFalse))
8599
&& !
IsConditionalState
9289
trackMembers: !
IsConditionalState
));
9398
Debug.Assert(!
IsConditionalState
);
9846
Debug.Assert(!trackMembers || !
IsConditionalState
);
10458
Debug.Assert(!
IsConditionalState
);
10612
Debug.Assert(!
IsConditionalState
);
11058
Debug.Assert(!
IsConditionalState
);
11235
Debug.Assert(!
IsConditionalState
);
11731
Debug.Assert(!
IsConditionalState
);
11924
Debug.Assert(!
IsConditionalState
);
12313
Debug.Assert(!
IsConditionalState
);
12354
Debug.Assert(!
IsConditionalState
);
12800
Debug.Assert(!
IsConditionalState
);
12808
if (
IsConditionalState
)
12823
if (
IsConditionalState
)
13008
Debug.Assert(
IsConditionalState
);
13162
Debug.Assert(!this.
IsConditionalState
);
13182
Debug.Assert(!this.
IsConditionalState
);
13268
Debug.Assert(!
IsConditionalState
);
13276
Debug.Assert(!
IsConditionalState
);
13362
Debug.Assert(!
IsConditionalState
);
13471
Debug.Assert(!this.
IsConditionalState
);
13899
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
);