24 references to Add
Microsoft.CSharp (24)
Microsoft\CSharp\RuntimeBinder\Semantics\COperators.cs (4)
28
new OperatorInfo(TokenKind.PlusEqual, PredefinedName.PN_COUNT, ExpressionKind.MultiOffset + (int)ExpressionKind.
Add
),
55
new OperatorInfo(TokenKind.Plus, PredefinedName.PN_OPPLUS, ExpressionKind.
Add
),
65
new OperatorInfo(TokenKind.PlusPlus, PredefinedName.PN_OPINCREMENT, ExpressionKind.
Add
),
86
new OperatorInfo(TokenKind.PlusPlus, PredefinedName.PN_COUNT, ExpressionKind.
Add
),
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (17)
899
ExpressionKind.
Add
=> info.typeRaw1.IsEnumType ^ info.typeRaw2.IsEnumType,
1114
ek = ExpressionKind.
Add
;
1123
ek = ExpressionKind.
Add
;
1350
Expr exprVal = bindUDUnop((ExpressionKind)(exprKind - ExpressionKind.
Add
+ ExpressionKind.Inc), exprGet);
1608
Debug.Assert(ek == ExpressionKind.
Add
|| ek == ExpressionKind.Subtract);
1632
Debug.Assert(ek == ExpressionKind.
Add
|| ek == ExpressionKind.Subtract);
1647
if (ek == ExpressionKind.
Add
)
1704
Debug.Assert(ek == ExpressionKind.
Add
|| ek == ExpressionKind.Subtract);
1731
Debug.Assert(ek == ExpressionKind.
Add
|| ek == ExpressionKind.Subtract);
1747
ExprUnaryOp exprRes = ExprFactory.CreateUnaryOp((ek == ExpressionKind.
Add
) ? ExpressionKind.Inc : ExpressionKind.Dec, arg.Type/* type */, exprVal);
1778
case ExpressionKind.
Add
:
1827
Debug.Assert(ek == ExpressionKind.
Add
);
1971
Debug.Assert(ek == ExpressionKind.
Add
|| ek == ExpressionKind.Subtract || ek == ExpressionKind.Eq || ek == ExpressionKind.NotEq);
1978
case ExpressionKind.
Add
:
2041
Debug.Assert(ek == ExpressionKind.
Add
|| ek == ExpressionKind.Subtract);
2116
case ExpressionKind.
Add
:
2702
case ExpressionKind.
Add
:
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (2)
399
ExpressionKind.
Add
=> expr.isChecked() ? PREDEFMETH.PM_EXPRESSION_ADDCHECKED : PREDEFMETH.PM_EXPRESSION_ADD,
531
case ExpressionKind.
Add
:
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExprVisitorBase.cs (1)
51
ExpressionKind.
Add
=> VisitADD(pExpr as ExprBinOp),