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) 2652else if (IsConditionalState && binary.Right.ConstantValueOpt is { IsBoolean: true } rightConstant) 2668if (IsConditionalState && isEquals(binary) != leftConstant.BooleanValue) 2905Debug.Assert(!IsConditionalState); 2941Debug.Assert(!IsConditionalState); 2955if (IsConditionalState) 2986Debug.Assert(!IsConditionalState); 3220Debug.Assert(!this.IsConditionalState); 3228Debug.Assert(!this.IsConditionalState); 3273var conditionalAfterConsequence = IsConditionalState; 3277if (!conditionalAfterConsequence && !IsConditionalState) 3331Debug.Assert(!this.IsConditionalState); 3428Debug.Assert(!this.IsConditionalState); 3543Debug.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 485if (this.IsConditionalState) 1759Debug.Assert(!walker.IsConditionalState); 1827Debug.Assert(!IsConditionalState); 2525Debug.Assert(!IsConditionalState); 2826Debug.Assert(!IsConditionalState); 2880Debug.Assert(!IsConditionalState); 2929if (IsConditionalState) 2933PendingBranches.Add(new PendingBranch(node, joinedState, label: null, this.IsConditionalState, this.StateWhenTrue, this.StateWhenFalse)); 3359Debug.Assert(!IsConditionalState); 3385Debug.Assert(!IsConditionalState); 3474Debug.Assert(!IsConditionalState); 3529Debug.Assert(!IsConditionalState); 3855Debug.Assert(!IsConditionalState); 4486Debug.Assert(!IsConditionalState); 4780Debug.Assert(!IsConditionalState); 4784Debug.Assert(!IsConditionalState); 4814Debug.Assert(!IsConditionalState); 4818Debug.Assert(!IsConditionalState); 4894Debug.Assert(!IsConditionalState); 5025if (IsConditionalState && binary.Right.ConstantValueOpt is { IsBoolean: true } rightConstant) 5041if (IsConditionalState && isEquals(binary) != leftConstant.BooleanValue) 5085Debug.Assert(!IsConditionalState); 5174Debug.Assert(!IsConditionalState); 5211Debug.Assert(!IsConditionalState); 5583Debug.Assert(!IsConditionalState); 5710Debug.Assert(!IsConditionalState); 5733if (IsConditionalState) 5748Debug.Assert(!IsConditionalState); 5819if (IsConditionalState) 6147=> this.IsConditionalState ? (this.StateWhenTrue.Reachable || this.StateWhenFalse.Reachable) : this.State.Reachable; 7148if (IsConditionalState) 7223Debug.Assert(!IsConditionalState); 7287Debug.Assert(!IsConditionalState); 7305if (IsConditionalState) 7312if (IsConditionalState) 7335Debug.Assert(!IsConditionalState); 7354Debug.Assert(!this.IsConditionalState); 7427Debug.Assert(!this.IsConditionalState); 7600if (!IsConditionalState && !hasConditionalPostCondition(parameterAnnotations)) 7612Debug.Assert(!IsConditionalState); 7617Debug.Assert(!IsConditionalState); 7698if (maybeNullWhenTrue && maybeNullWhenFalse && !IsConditionalState && !(notNullWhenTrue && notNullWhenFalse)) 7703&& !IsConditionalState 8296trackMembers: !IsConditionalState)); 8405Debug.Assert(!IsConditionalState); 8794Debug.Assert(!trackMembers || !IsConditionalState); 9768Debug.Assert(!IsConditionalState); 9933Debug.Assert(!IsConditionalState); 10414Debug.Assert(!IsConditionalState); 10757Debug.Assert(!IsConditionalState); 10788Debug.Assert(!IsConditionalState); 11223Debug.Assert(!IsConditionalState); 11231if (IsConditionalState) 11246if (IsConditionalState) 11354Debug.Assert(!IsConditionalState); 11483Debug.Assert(!this.IsConditionalState); 11503Debug.Assert(!this.IsConditionalState); 11589Debug.Assert(!IsConditionalState); 11597Debug.Assert(!IsConditionalState); 11683Debug.Assert(!IsConditionalState); 11792Debug.Assert(!this.IsConditionalState); 12166if (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);