Internals: Simplify AstScopeName (#6280)

Reduce reliance on AstText where not necessary.
This commit is contained in:
Geza Lore
2025-10-15 09:14:51 +01:00
parent 0c712d7c60
commit 794247450f
6 changed files with 45 additions and 60 deletions
+2 -2
View File
@@ -1303,8 +1303,8 @@ class TaskVisitor final : public VNVisitor {
if (nodep->dpiExport()) {
AstScopeName* const snp = nodep->scopeNamep();
UASSERT_OBJ(snp, nodep, "Missing scoping context");
snp->dpiExport(
true); // The AstScopeName is really a statement(ish) for tracking, not a function
// The AstScopeName is really a statement(ish) for tracking, not a function
snp->dpiExport(true);
snp->unlinkFrBack();
cfuncp->addInitsp(snp);
}