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.
SourceRange opRange
The source range of the operator token.

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