Operator.sides

Retrieve the sub expressions of an operator expressions.

rhs is the null cursor for unary operators.

struct Operator
const @trusted
sides
()

Return Value

The sides of the expression.

trusted: dex_getOperatorExprs is limited to only being able to handle operator expressions. getExprOperator only processes binary, unary and callExpr cursors. This lead to isValid only returning true when the cursor is of that type. Thus the limitation of dex_getOperatorExprs is fulfilled.

TODO Further audit of the C++ implementation of dex_getOperatorExprs is needed.

Meta