26 references to Bool
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Operators.cs (2)
939
var constantValue = FoldBinaryOperator(node, kind | BinaryOperatorKind.
Bool
, left, right, left.Type, diagnostics);
942
return new BoundBinaryOperator(node, kind | BinaryOperatorKind.
Bool
, constantValue, methodOpt: null, constrainedToTypeOpt: null,
Binder\Binder_Patterns.cs (2)
1654
case BinaryOperatorKind.
Bool
:
1710
SpecialType.System_Boolean => BinaryOperatorKind.
Bool
,
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (4)
28
private const BinaryOperatorKind BOL = BinaryOperatorKind.
Bool
;
38
private const BinaryOperatorKind LBL = BinaryOperatorKind.Lifted | BinaryOperatorKind.
Bool
;
277
if (!kind.IsLogical() || (leftIndex == (int)BinaryOperatorKind.
Bool
&& rightIndex == (int)BinaryOperatorKind.
Bool
))
Binder\Semantics\Operators\OperatorKind.cs (12)
550
BoolEqual =
Bool
| Equal,
563
LiftedBoolEqual = Lifted |
Bool
| Equal,
581
BoolNotEqual =
Bool
| NotEqual,
594
LiftedBoolNotEqual = Lifted |
Bool
| NotEqual,
710
BoolAnd =
Bool
| And,
719
LiftedBoolAnd = Lifted |
Bool
| And,
724
LogicalBoolAnd =
Bool
| LogicalAnd,
735
BoolOr =
Bool
| Or,
744
LiftedBoolOr = Lifted |
Bool
| Or,
749
LogicalBoolOr =
Bool
| LogicalOr,
760
BoolXor =
Bool
| Xor,
769
LiftedBoolXor = Lifted |
Bool
| Xor,
CodeGen\EmitOperators.cs (1)
829
return opKind.OperandTypes() == BinaryOperatorKind.
Bool
;
Compilation\BuiltInOperators.cs (4)
757
case BinaryOperatorKind.
Bool
: return _compilation.GetSpecialType(SpecialType.System_Boolean);
789
case BinaryOperatorKind.
Bool
: return _compilation.GetSpecialType(SpecialType.System_Boolean);
821
case BinaryOperatorKind.
Bool
: return _compilation.GetSpecialType(SpecialType.System_Boolean);
848
BinaryOperatorKind.
Bool
=> _compilation.GetSpecialType(SpecialType.System_Boolean),
FlowAnalysis\AbstractFlowPass.cs (1)
2475
var isBool = kind.OperandTypes() == BinaryOperatorKind.
Bool
;