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)
2296if (node.OperatorKind.IsLogical()) 2335if (!binOp.OperatorKind.IsLogical()) 2456while (binary != null && !binary.OperatorKind.IsLogical() && binary.InterpolatedStringHandlerData is null);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
400case BinaryOperatorKind.And: return opKind.IsLogical() ? "AndAlso" : "And"; 402case BinaryOperatorKind.Or: return opKind.IsLogical() ? "OrElse" : "Or";
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
229if (operatorKind.IsLogical()) 776Debug.Assert(!operatorKind.IsLogical());
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
167if (operatorKind.IsLogical())