15 references to IsBoolean
Microsoft.CodeAnalysis (2)
ConstantValue.cs (1)
858return IsIntegral || IsBoolean || IsChar;
Operations\ControlFlowGraphBuilder.cs (1)
276if (current.BranchValue.GetConstantValue() is { IsBoolean: true, BooleanValue: bool constant })
Microsoft.CodeAnalysis.CSharp (12)
CodeGen\EmitOperators.cs (1)
407else if (constant.IsBoolean)
FlowAnalysis\AbstractFlowPass.cs (5)
1033case BoundConstantPattern { ConstantValue: { IsBoolean: true, BooleanValue: var boolValue } }: 1064case BoundConstantPattern { ConstantValue: { IsBoolean: false } }: 1674if (node.ConstantValueOpt is { IsBoolean: true, BooleanValue: bool booleanValue } 2683else if (IsConditionalState && binary.Right.ConstantValueOpt is { IsBoolean: true } rightConstant) 2695else if (binary.Left.ConstantValueOpt is { IsBoolean: true } leftConstant)
FlowAnalysis\NullableWalker.cs (6)
1077if (returnStatement.ExpressionOpt is { ConstantValueOpt: { IsBoolean: true, BooleanValue: bool value } }) 1242if (returnStatement.ExpressionOpt is { ConstantValueOpt: { IsBoolean: true, BooleanValue: bool value } }) 1263else if (returnStatement.ExpressionOpt is { ConstantValueOpt: { IsBoolean: true, BooleanValue: bool value } }) 5195else if (isEquals(binary) && otherOperand.ConstantValueOpt is { IsBoolean: true, BooleanValue: var boolValue }) 5242if (IsConditionalState && binary.Right.ConstantValueOpt is { IsBoolean: true } rightConstant) 5253else if (binary.Left.ConstantValueOpt is { IsBoolean: true } leftConstant)
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
174Assert.False(cv5.IsBoolean);