slang::ast::ElementSelectExpression class final

Represents a single element selection expression.

Base classes

class Expression
The base class for all expressions in SystemVerilog.

Public functions

const Expression& value() const
Expression& value()
const Expression& selector() const
bool isConstantSelect(EvalContext& context) const

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