Module ArithmeticOperation

Provides all arithmetic operation classes.

All arithmetic operations have the common base class ArithmeticOperation.

Import path

semmle.code.csharp.exprs.ArithmeticOperation

Imports

Expr

Provides all expression classes.

Classes

AddExpr

An addition operation, for example x + y.

ArithmeticOperation

An arithmetic operation. Either a unary arithmetic operation (UnaryArithmeticOperation) or a binary arithmetic operation (BinaryArithmeticOperation).

BinaryArithmeticOperation

A binary arithmetic operation. Either an addition operation (AddExpr), a subtraction operation (SubExpr), a multiplication operation (MulExpr), a division operation (DivExpr), or a remainder operation (RemExpr).

DecrementOperation

A decrement operation. Either a postfix decrement operation (PostDecrExpr) or a prefix decrement operation (PreDecrExpr).

DivExpr

A division operation, for example x / y.

IncrementOperation

An increment operation. Either a postfix increment operation (PostIncrExpr) or a prefix increment operation (PreIncrExpr).

MulExpr

A multiplication operation, for example x * y.

MutatorOperation

A mutator operation. Either an increment operation (IncrementOperation) or a decrement operation (DecrementOperation).

PostDecrExpr

A postfix decrement operation, for example x--.

PostIncrExpr

A postfix increment operation, for example x++.

PreDecrExpr

A prefix decrement operation, for example --x.

PreIncrExpr

A prefix increment operation, for example ++x.

RemExpr

A remainder operation, for example x % y.

SubExpr

A subtraction operation, for example x - y.

UnaryArithmeticOperation

A unary arithmetic operation. Either a unary minus operation (UnaryMinusExpr), a unary plus operation (UnaryPlusExpr), or a mutator operation (MutatorOperation).

UnaryMinusExpr

A unary minus operation, for example -x.

UnaryPlusExpr

A unary plus operation, for example +x.