slang::ast::BindDirectiveInfo struct

Information about how a bind directive applies to some definition or specific target node.

Public variables

const syntax::BindDirectiveSyntax* bindSyntax
The syntax node of the bind directive.
const syntax::SyntaxNode* configRuleSyntax
The syntax node for a config rule that applies to the target instance, if any.
const syntax::SyntaxNode* configBlockSyntax
The syntax node for a config block that applies to the target instance, if any.
const syntax::SyntaxNode* instantiationDefSyntax
The syntax node for the resolved definition, if definition name resolution succeeded.
std::span<const SourceLibrary*const > liblist
A liblist that applies to the newly bound instance.
bool isNewConfigRoot
If true, the new instance is also a new config root, and configRootSyntax points to the config block for that root.

Variable documentation

bool slang::ast::BindDirectiveInfo::isNewConfigRoot

If true, the new instance is also a new config root, and configRootSyntax points to the config block for that root.

Otherwise, it points either to nullptr, or to its parent's config root.