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