slang::ast::PackageSymbol class

A SystemVerilog package construct.

Base classes

class Symbol
class Scope

Public functions

auto findForImport(std::string_view name) const -> const Symbol*
void noteImport(const Symbol& symbol) const
Notes that the given symbol was imported into this package from some other package.

Function documentation

const Symbol* slang::ast::PackageSymbol::findForImport(std::string_view name) const

Searches for a symbol by name, in the context of importing from the package. This is similar to a call to find() but also includes symbols that have been exported from the package.