78 references to Addition
Microsoft.CodeAnalysis.CSharp (78)
Binder\Binder_Operators.cs (6)
38case BinaryOperatorKind.Addition: 260Debug.Assert(opKind == BinaryOperatorKind.Addition || opKind == BinaryOperatorKind.Subtraction); 283bool isAddition = opKind == BinaryOperatorKind.Addition; 553&& kind == BinaryOperatorKind.Addition 1747case BinaryOperatorKind.Addition: 2233case SyntaxKind.AddExpression: return BinaryOperatorKind.Addition;
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (6)
315case BinaryOperatorKind.Addition: 349case BinaryOperatorKind.Addition: 483case BinaryOperatorKind.Addition: 550case BinaryOperatorKind.Addition: 632case BinaryOperatorKind.Addition: 752if (kind.Operator() is BinaryOperatorKind.Addition &&
Binder\Semantics\Operators\OperatorFacts.cs (1)
192case BinaryOperatorKind.Addition: return isChecked ? WellKnownMemberNames.CheckedAdditionOperatorName : WellKnownMemberNames.AdditionOperatorName;
Binder\Semantics\Operators\OperatorKind.cs (38)
421IntAddition = Int | Addition, 422UIntAddition = UInt | Addition, 423LongAddition = Long | Addition, 424ULongAddition = ULong | Addition, 425NIntAddition = NInt | Addition, 426NUIntAddition = NUInt | Addition, 427FloatAddition = Float | Addition, 428DoubleAddition = Double | Addition, 429DecimalAddition = Decimal | Addition, 430EnumAndUnderlyingAddition = EnumAndUnderlying | Addition, 431UnderlyingAndEnumAddition = UnderlyingAndEnum | Addition, 432UserDefinedAddition = UserDefined | Addition, 433LiftedIntAddition = Lifted | Int | Addition, 434LiftedUIntAddition = Lifted | UInt | Addition, 435LiftedLongAddition = Lifted | Long | Addition, 436LiftedULongAddition = Lifted | ULong | Addition, 437LiftedNIntAddition = Lifted | NInt | Addition, 438LiftedNUIntAddition = Lifted | NUInt | Addition, 439LiftedFloatAddition = Lifted | Float | Addition, 440LiftedDoubleAddition = Lifted | Double | Addition, 441LiftedDecimalAddition = Lifted | Decimal | Addition, 442LiftedEnumAndUnderlyingAddition = Lifted | EnumAndUnderlying | Addition, 443LiftedUnderlyingAndEnumAddition = Lifted | UnderlyingAndEnum | Addition, 444LiftedUserDefinedAddition = Lifted | UserDefined | Addition, 445PointerAndIntAddition = PointerAndInt | Addition, 446PointerAndUIntAddition = PointerAndUInt | Addition, 447PointerAndLongAddition = PointerAndLong | Addition, 448PointerAndULongAddition = PointerAndULong | Addition, 449IntAndPointerAddition = IntAndPointer | Addition, 450UIntAndPointerAddition = UIntAndPointer | Addition, 451LongAndPointerAddition = LongAndPointer | Addition, 452ULongAndPointerAddition = ULongAndPointer | Addition, 453StringConcatenation = String | Addition, 454StringAndObjectConcatenation = StringAndObject | Addition, 455ObjectAndStringConcatenation = ObjectAndString | Addition, 456DelegateCombination = Delegate | Addition, 457DynamicAddition = Dynamic | Addition, 458Utf8Addition = Utf8 | Addition,
Binder\Semantics\Operators\OperatorKindExtensions.cs (4)
229case BinaryOperatorKind.Addition: 253case BinaryOperatorKind.Addition: 343case BinaryOperatorKind.Addition: return ExpressionType.AddAssign; 359case BinaryOperatorKind.Addition: return ExpressionType.Add;
CodeGen\EmitOperators.cs (2)
183case BinaryOperatorKind.Addition: 713case BinaryOperatorKind.Addition:
Compilation\BuiltInOperators.cs (1)
715case BinaryOperatorKind.Addition:
Compilation\CSharpCompilation.cs (5)
4292if (binaryKind is BinaryOperatorKind.Addition or BinaryOperatorKind.Subtraction && 4335if (binaryKind is BinaryOperatorKind.Addition or BinaryOperatorKind.Subtraction) 4376if (binaryKind is BinaryOperatorKind.Addition && 4385if (binaryKind is BinaryOperatorKind.Addition && 4412if (binaryKind is BinaryOperatorKind.Addition &&
Compiler\MethodBodySynthesizer.Lowered.cs (2)
107F.Binary(BinaryOperatorKind.Addition, i.Type, 196F.Binary(BinaryOperatorKind.Addition, i.Type,
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
55factory.Array(payloadArrayType.ElementType, factory.Binary(BinaryOperatorKind.Addition, factory.SpecialType(SpecialType.System_Int32), factory.MaximumMethodDefIndex(), factory.Literal(1))));
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
393case BinaryOperatorKind.Addition:
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2271Debug.Assert(kind.Operator() == BinaryOperatorKind.Addition);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
810_factory.Binary(BinaryOperatorKind.Addition, indexTemp.Type, indexTemp, _factory.Literal(1)), 1014sideEffects.Add(new BoundAssignmentOperator(rewrittenSpreadOperand.Syntax, indexTemp, _factory.Binary(BinaryOperatorKind.Addition, indexTemp.Type, indexTemp, spreadLength), isRef: false, indexTemp.Type)); 1146_factory.Binary(BinaryOperatorKind.Addition, indexTemp.Type, indexTemp, _factory.Literal(1)), 1318_factory.Binary(BinaryOperatorKind.Addition, sum.Type!, sum, value);
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
42(binaryOperator == BinaryOperatorKind.Addition || binaryOperator == BinaryOperatorKind.Subtraction)) 86(binaryOperator == BinaryOperatorKind.Addition ? "add_" : "remove_") + memberAccess.Name,
Lowering\LocalRewriter\LocalRewriter_PointerElementAccess.cs (1)
44BinaryOperatorKind additionKind = BinaryOperatorKind.Addition;
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
735binaryOperatorKind |= IsIncrement(node) ? BinaryOperatorKind.Addition : BinaryOperatorKind.Subtraction; 812case BinaryOperatorKind.Addition: member = SpecialMember.System_Decimal__op_Increment; break;
Operations\CSharpOperationFactory_Methods.cs (1)
551case CSharp.BinaryOperatorKind.Addition: