PackageSymbol class final
A SystemVerilog package construct.
Base classes
Public functions
-
const Symbol* findForImport(std::
string_view name) const - Searches for a symbol by name, in the context of importing from the package.
- void resolveExports() const
- Validates this package's export declarations and populates the export maps.
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.
void slang:: ast:: PackageSymbol:: resolveExports() const
Validates this package's export declarations and populates the export maps.
Idempotent; does nothing if the package has no export declarations.