slang::ast::ConversionExpression class

Represents a type conversion expression (implicit or explicit).

Base classes

class Expression
The base class for all expressions in SystemVerilog.

Public functions

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

Public variables

const ConversionKind conversionKind
The kind of conversion.

Function documentation

bool slang::ast::ConversionExpression::isImplicit() const

Returns true if this is an implicit conversion

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

Returns the operand of the conversion

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

Returns the operand of the conversion