42 references to Binary
Microsoft.CodeAnalysis.CSharp (42)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (1)
125
BoundExpression retExpression = F.
Binary
(BinaryOperatorKind.ObjectNotEqual,
Compiler\MethodBodySynthesizer.Lowered.cs (11)
85
F.
Binary
(BinaryOperatorKind.ObjectNotEqual, F.SpecialType(SpecialType.System_Boolean),
95
F.
Binary
(BinaryOperatorKind.Multiplication, hashCode.Type,
96
F.
Binary
(BinaryOperatorKind.Xor, hashCode.Type,
107
F.
Binary
(BinaryOperatorKind.Addition, i.Type,
112
F.
Binary
(BinaryOperatorKind.LessThan, F.SpecialType(SpecialType.System_Boolean),
182
F.
Binary
(BinaryOperatorKind.Multiplication, hashCode.Type,
183
F.
Binary
(BinaryOperatorKind.Xor, hashCode.Type,
196
F.
Binary
(BinaryOperatorKind.Addition, i.Type,
201
F.
Binary
(BinaryOperatorKind.LessThan, F.SpecialType(SpecialType.System_Boolean),
367
currentHashValue = F.
Binary
(BinaryOperatorKind.IntMultiplication, system_Int32, currentHashValue, boundHashFactor);
370
currentHashValue = F.
Binary
(BinaryOperatorKind.IntAddition,
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
55
factory.Array(payloadArrayType.ElementType, factory.
Binary
(BinaryOperatorKind.Addition, factory.SpecialType(SpecialType.System_Int32), factory.MaximumMethodDefIndex(), factory.Literal(1))));
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
290
_methodBodyFactory.
Binary
(
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (5)
2234
loweredRight = _factory.
Binary
(andOperatorKind, rightType,
2241
? _factory.
Binary
(operatorKind, type, loweredLeft, loweredRight)
2440
var multiplication = _factory.
Binary
(multiplicationKind, multiplicationResultType, numericOperand, sizeOfExpression);
2464
_factory.
Binary
(
2467
_factory.
Binary
(
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
764
_factory.
Binary
(BinaryOperatorKind.Addition, indexTemp.Type, indexTemp, _factory.Literal(1)),
969
sideEffects.Add(new BoundAssignmentOperator(rewrittenSpreadOperand.Syntax, indexTemp, _factory.
Binary
(BinaryOperatorKind.Addition, indexTemp.Type, indexTemp, spreadLength), isRef: false, indexTemp.Type));
1101
_factory.
Binary
(BinaryOperatorKind.Addition, indexTemp.Type, indexTemp, _factory.Literal(1)),
1273
_factory.
Binary
(BinaryOperatorKind.Addition, sum.Type!, sum, value);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (3)
486
BoundExpression addition = factory.
Binary
(BinaryOperatorKind.PointerAndIntAddition, localType, factory.Local(localSymbol), helperCall);
550
BoundExpression lengthCheck = factory.
Binary
(BinaryOperatorKind.IntNotEqual, factory.SpecialType(SpecialType.System_Boolean), lengthCall, factory.Literal(0));
553
BoundExpression condition = factory.
Binary
(BinaryOperatorKind.LogicalBoolAnd, factory.SpecialType(SpecialType.System_Boolean), notNullCheck, lengthCheck);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
149
BoundExpression product = _factory.
Binary
(multiplicationKind, uintPtrType, convertedCount, sizeOfExpression);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
183
_factory.
Binary
(BinaryOperatorKind.StringConcatenation, node.Type, result, part);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (2)
341
_factory.
Binary
(BinaryOperatorKind.Equal, boolType, leftHasValue, rightHasValue),
503
currentResult = _factory.
Binary
(logicalOperator, type, currentResult, nextLogicalOperand);
Lowering\StateMachineRewriter\ResumableStateMachineStateAllocator.cs (1)
90
f.
Binary
(
Lowering\SyntheticBoundNodeFactory.cs (11)
652
return
Binary
(BinaryOperatorKind.LogicalBoolAnd, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
659
return
Binary
(BinaryOperatorKind.LogicalBoolOr, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
664
return
Binary
(BinaryOperatorKind.IntEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
669
return
Binary
(BinaryOperatorKind.ObjectEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
680
return
Binary
(BinaryOperatorKind.ObjectNotEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
685
return
Binary
(BinaryOperatorKind.IntNotEqual, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
690
return
Binary
(BinaryOperatorKind.IntLessThan, SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Boolean), left, right);
695
return
Binary
(BinaryOperatorKind.IntGreaterThanOrEqual, SpecialType(CodeAnalysis.SpecialType.System_Boolean), left, right);
700
return
Binary
(BinaryOperatorKind.IntSubtraction, SpecialType(CodeAnalysis.SpecialType.System_Int32), left, right);
705
return
Binary
(BinaryOperatorKind.IntMultiplication, SpecialType(CodeAnalysis.SpecialType.System_Int32), left, right);
1789
return
Binary
(operatorKind, boolType, rewrittenExpr, Null(objectType));