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