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