slang::ast::OpaqueInstancePath class

Represents a path to a specific instance in a design.

The path is stored only via opaque syntax nodes, to allow it to generalize across compilations (and so different sets of AST nodes) that share the same underlying syntax.

Public types

class Entry
An entry in the path.

Constructors, destructors, conversion operators

OpaqueInstancePath() defaulted
Constructs an empty instance path.
OpaqueInstancePath(const Symbol& symbol) explicit
Constructs a path to the given symbol.

Public functions

auto empty() const -> bool

Public variables

SmallVector<Entry> entries
The list of entries in the path.

Function documentation

slang::ast::OpaqueInstancePath::OpaqueInstancePath(const Symbol& symbol) explicit

Constructs a path to the given symbol.

If the given symbol is not an instance, the path will point to the nearest parent instance.

bool slang::ast::OpaqueInstancePath::empty() const

Returns true if the path is empty