Internals: Set isParameterized near hasGParam. No functional change intended.

This commit is contained in:
Wilson Snyder 2025-03-08 17:53:24 -05:00
parent 9632dfdf93
commit ce2f335786
2 changed files with 4 additions and 2 deletions

View File

@ -315,7 +315,10 @@ class LinkParseVisitor final : public VNVisitor {
nodep->varType(VVarType::LPARAM);
}
}
if (nodep->isGParam() && m_modp) m_modp->hasGParam(true);
if (nodep->isGParam() && m_modp) {
m_modp->hasGParam(true);
if (AstClass* const classp = VN_CAST(m_modp, Class)) classp->isParameterized(true);
}
if (nodep->isParam() && !nodep->valuep()
&& nodep->fileline()->language() < V3LangCode::L1800_2009) {

View File

@ -7160,7 +7160,6 @@ class_declaration<nodep>: // ==IEEE: part of class_declaration
}
/*cont*/ class_itemListEnd endLabelE
{ $$ = $1; $1->addMembersp($2);
if ($2) $1->isParameterized(true);
$1->addExtendsp($3);
$1->addExtendsp($4);
$1->addMembersp($7);