slang::ast::RangeSelectExpression class final

Represents a range selection expression.

Base classes

class Expression
The base class for all expressions in SystemVerilog.

Public functions

const Expression& value() const
Expression& value()
const Expression& left() const
const Expression& right() const
RangeSelectionKind getSelectionKind() const
bool isConstantSelect(EvalContext& context) const

Function documentation

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

Returns the value being selected from

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

Returns the value being selected from

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

Returns the left-hand side of the range

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

Returns the right-hand side of the range

RangeSelectionKind slang::ast::RangeSelectExpression::getSelectionKind() const

Returns the kind of selection (simple or indexed).

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

Returns true if this is a constant selection