Fix functions in generate block resulting in "Broken link in node" (#7236) (#7367)

Fixes #7236
This commit is contained in:
em2machine
2026-04-03 11:19:17 -04:00
committed by GitHub
parent 56ed47ee7c
commit e7a644a3fc
6 changed files with 77 additions and 0 deletions
+2
View File
@@ -3111,6 +3111,7 @@ void AstActive::dumpJson(std::ostream& str) const { dumpJsonGen(str); }
void AstNodeFTaskRef::dump(std::ostream& str) const {
this->AstNodeExpr::dump(str);
if (classOrPackagep()) str << " pkg=" << nodeAddr(classOrPackagep());
if (containsGenBlock()) str << " [GENBLK]";
str << " -> ";
if (dotted() != "") str << ".=" << dotted() << " ";
if (taskp()) {
@@ -3121,6 +3122,7 @@ void AstNodeFTaskRef::dump(std::ostream& str) const {
}
void AstNodeFTaskRef::dumpJson(std::ostream& str) const {
dumpJsonStrFunc(str, dotted);
dumpJsonBoolFuncIf(str, containsGenBlock);
dumpJsonGen(str);
}
void AstNodeFTask::dump(std::ostream& str) const {