slang::ast::UnaryExpression class

Represents a unary operator expression.

Base classes

class Expression
The base class for all expressions in SystemVerilog.

Public functions

auto operand() const -> const Expression&
auto operand() -> Expression&

Public variables

UnaryOperator op
The operator.
SourceRange opRange
The source range of the operator token.

Function documentation

const Expression& slang::ast::UnaryExpression::operand() const

Returns the operand

Expression& slang::ast::UnaryExpression::operand()

Returns the operand