CodeQL library for C#
codeql/csharp-all 6.0.0 (changelog, source)
Search

Module Operation

Provides classes for operations that also have compound assignment forms.

Import path

import semmle.code.csharp.exprs.Operation

Imports

Expr

Provides all expression classes.

Classes

AddOperation

An addition operation, either x + y or x += y.

BitwiseAndOperation

A bitwise-and operation, either x & y or x &= y.

BitwiseOrOperation

A bitwise-or operation, either x | y or x |= y.

BitwiseXorOperation

A bitwise exclusive-or operation, either x ^ y or x ^= y.

DivOperation

A division operation, either x / y or x /= y.

LeftShiftOperation

A left-shift operation, either x << y or x <<= y.

MulOperation

A multiplication operation, either x * y or x *= y.

NullCoalescingOperation

A null-coalescing operation, either x ?? y or x ??= y.

RemOperation

A remainder operation, either x % y or x %= y.

RightShiftOperation

A right-shift operation, either x >> y or x >>= y.

SubOperation

A subtraction operation, either x - y or x -= y.

UnsignedRightShiftOperation

An unsigned right-shift operation, either x >>> y or x >>>= y.