slang::ast::HierarchyOverrideNode::ParamOverride struct

Represents a single parameter override value.

Public variables

ConstantValue cv
The pre-evaluated constant value. Empty when expr is set instead.
const syntax::ExpressionSyntax* expr
An expression syntax to evaluate with type context (for CLI overrides).
const syntax::SyntaxNode* defparam
The source defparam syntax node doing the overriding, if any (can be null).
bool isImplicitString
Set to true if the overriding value is an implicit string (i.e.

Variable documentation

const syntax::ExpressionSyntax* slang::ast::HierarchyOverrideNode::ParamOverride::expr

An expression syntax to evaluate with type context (for CLI overrides).

Null when cv is set instead.

bool slang::ast::HierarchyOverrideNode::ParamOverride::isImplicitString

Set to true if the overriding value is an implicit string (i.e.

it was derived from a string literal).