slang::ast::BinaryExpression class

Represents a binary operator expression.

Base classes

class Expression
The base class for all expressions in SystemVerilog.

Public functions

auto left() const -> const Expression&
auto left() -> Expression&
auto right() const -> const Expression&
auto right() -> Expression&

Public variables

BinaryOperator op
The operator.

Function documentation

const Expression& slang::ast::BinaryExpression::left() const

Returns the left-hand side of the expression

Expression& slang::ast::BinaryExpression::left()

Returns the left-hand side of the expression

const Expression& slang::ast::BinaryExpression::right() const

Returns the right-hand side of the expression

Expression& slang::ast::BinaryExpression::right()

Returns the right-hand side of the expression