slang::ast::ElementSelectExpression class

Represents a single element selection expression.

Base classes

class Expression
The base class for all expressions in SystemVerilog.

Public functions

auto value() const -> const Expression&
auto value() -> Expression&
auto selector() const -> const Expression&
auto isConstantSelect(EvalContext& context) const -> bool

Function documentation

const Expression& slang::ast::ElementSelectExpression::value() const

Returns the value being selected from

Expression& slang::ast::ElementSelectExpression::value()

Returns the value being selected from

const Expression& slang::ast::ElementSelectExpression::selector() const

Returns the selection expression

bool slang::ast::ElementSelectExpression::isConstantSelect(EvalContext& context) const

Returns true if this is a constant selection