14 references to IsLogical
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder_Operators.cs (1)
390if (kind.IsLogical() && leftValidOperand)
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
277if (!kind.IsLogical() || (leftIndex == (int)BinaryOperatorKind.Bool && rightIndex == (int)BinaryOperatorKind.Bool))
BoundTree\Constructors.cs (1)
513Debug.Assert(operatorKind.IsUserDefined() && operatorKind.IsLogical());
CodeGen\EmitOperators.cs (1)
70if (!used && !operatorKind.IsLogical() && !OperatorHasSideEffects(operatorKind))
Compilation\BuiltInOperators.cs (1)
675foreach (var op in _builtInOperators[kind.IsLogical() ? 1 : 0][kind.OperatorIndex()])
Compilation\CSharpSemanticModel.cs (1)
3846if (operandType == 0 || operandType == BinaryOperatorKind.UserDefined || binaryOperator.ResultKind != LookupResultKind.Viable || binaryOperator.OperatorKind.IsLogical())
FlowAnalysis\AbstractFlowPass.cs (3)
2386if (node.OperatorKind.IsLogical()) 2425if (!binOp.OperatorKind.IsLogical()) 2547while (binary != null && !binary.OperatorKind.IsLogical() && binary.InterpolatedStringHandlerData is null);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
426return opKind.IsLogical() ? 438return opKind.IsLogical() ?
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
229if (operatorKind.IsLogical()) 776Debug.Assert(!operatorKind.IsLogical());
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
167if (operatorKind.IsLogical())