slang::ast::PackageSymbol class

A SystemVerilog package construct.

Base classes

class Symbol
Base class for all symbols (logical code constructs) such as modules, types, functions, variables, etc.
class Scope
Base class for symbols that represent a name scope; that is, they contain children and can participate in name lookup.

Public functions

auto findForImport(std::string_view name) const -> const Symbol*
Searches for a symbol by name, in the context of importing from the 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.