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