2 writes to IsConditionalState
Microsoft.CodeAnalysis.CSharp (2)
FlowAnalysis\AbstractFlowPass.cs (2)
133IsConditionalState = true; 143IsConditionalState = false;
98 references to IsConditionalState
Microsoft.CodeAnalysis.CSharp (98)
FlowAnalysis\AbstractFlowPass.cs (21)
149if (!IsConditionalState) 157if (IsConditionalState) 228return IsConditionalState 673Debug.Assert(!this.IsConditionalState); 827Debug.Assert(!this.IsConditionalState); 923Debug.Assert(!IsConditionalState); 936Debug.Assert(!IsConditionalState); 941else if (IsConditionalState) 2656else if (IsConditionalState && binary.Right.ConstantValueOpt is { IsBoolean: true } rightConstant) 2672if (IsConditionalState && isEquals(binary) != leftConstant.BooleanValue) 2909Debug.Assert(!IsConditionalState); 2945Debug.Assert(!IsConditionalState); 2959if (IsConditionalState) 2990Debug.Assert(!IsConditionalState); 3224Debug.Assert(!this.IsConditionalState); 3232Debug.Assert(!this.IsConditionalState); 3277var conditionalAfterConsequence = IsConditionalState; 3281if (!conditionalAfterConsequence && !IsConditionalState) 3335Debug.Assert(!this.IsConditionalState); 3432Debug.Assert(!this.IsConditionalState); 3547Debug.Assert(this.IsConditionalState);
FlowAnalysis\AlwaysAssignedWalker.cs (1)
122if (this.IsConditionalState)
FlowAnalysis\DefiniteAssignment.cs (3)
1153Debug.Assert(!IsConditionalState); 1535Debug.Assert(!IsConditionalState); 1934Debug.Assert(!this.IsConditionalState);
FlowAnalysis\DefiniteAssignment.LocalFunctions.cs (1)
70Debug.Assert(!IsConditionalState);
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
72if (this.IsConditionalState)
FlowAnalysis\LocalDataFlowPass.cs (1)
135if (IsConditionalState)
FlowAnalysis\NullableWalker.cs (63)
345|| !IsConditionalState 486if (this.IsConditionalState) 1820Debug.Assert(!walker.IsConditionalState); 1888Debug.Assert(!IsConditionalState); 2586Debug.Assert(!IsConditionalState); 2887Debug.Assert(!IsConditionalState); 2941Debug.Assert(!IsConditionalState); 2990if (IsConditionalState) 2994PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 3420Debug.Assert(!IsConditionalState); 3446Debug.Assert(!IsConditionalState); 3535Debug.Assert(!IsConditionalState); 3590Debug.Assert(!IsConditionalState); 3916Debug.Assert(!IsConditionalState); 4547Debug.Assert(!IsConditionalState); 4841Debug.Assert(!IsConditionalState); 4845Debug.Assert(!IsConditionalState); 4875Debug.Assert(!IsConditionalState); 4879Debug.Assert(!IsConditionalState); 4955Debug.Assert(!IsConditionalState); 5086if (IsConditionalState && binary.Right.ConstantValueOpt is { IsBoolean: true } rightConstant) 5102if (IsConditionalState && isEquals(binary) != leftConstant.BooleanValue) 5146Debug.Assert(!IsConditionalState); 5235Debug.Assert(!IsConditionalState); 5272Debug.Assert(!IsConditionalState); 5644Debug.Assert(!IsConditionalState); 5771Debug.Assert(!IsConditionalState); 5794if (IsConditionalState) 5809Debug.Assert(!IsConditionalState); 5880if (IsConditionalState) 6208=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7209if (IsConditionalState) 7284Debug.Assert(!IsConditionalState); 7348Debug.Assert(!IsConditionalState); 7366if (IsConditionalState) 7373if (IsConditionalState) 7396Debug.Assert(!IsConditionalState); 7415Debug.Assert(!this.IsConditionalState); 7488Debug.Assert(!this.IsConditionalState); 7661if (!IsConditionalState && !hasConditionalPostCondition(parameterAnnotations)) 7673Debug.Assert(!IsConditionalState); 7678Debug.Assert(!IsConditionalState); 7759if (maybeNullWhenTrue && maybeNullWhenFalse && !IsConditionalState && !(notNullWhenTrue && notNullWhenFalse)) 7764&& !IsConditionalState 8357trackMembers: !IsConditionalState)); 8466Debug.Assert(!IsConditionalState); 8855Debug.Assert(!trackMembers || !IsConditionalState); 9829Debug.Assert(!IsConditionalState); 9994Debug.Assert(!IsConditionalState); 10475Debug.Assert(!IsConditionalState); 10818Debug.Assert(!IsConditionalState); 10849Debug.Assert(!IsConditionalState); 11284Debug.Assert(!IsConditionalState); 11292if (IsConditionalState) 11307if (IsConditionalState) 11415Debug.Assert(!IsConditionalState); 11544Debug.Assert(!this.IsConditionalState); 11564Debug.Assert(!this.IsConditionalState); 11650Debug.Assert(!IsConditionalState); 11658Debug.Assert(!IsConditionalState); 11744Debug.Assert(!IsConditionalState); 11853Debug.Assert(!this.IsConditionalState); 12227if (IsConditionalState)
FlowAnalysis\NullableWalker_Patterns.cs (7)
36Debug.Assert(!IsConditionalState); 361return nullableWalker.IsConditionalState 391if (!IsConditionalState) 479Debug.Assert(!IsConditionalState); 708Debug.Assert(this.IsConditionalState); 776switch (IsConditionalState, stateAndReachable.state.IsConditionalState) 1055Debug.Assert(!IsConditionalState);