Put display scope tracking under special node type

git-svn-id: file://localhost/svn/verilator/trunk/verilator@936 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
Wilson Snyder
2007-06-14 16:41:32 +00:00
parent 5b620a8dc5
commit c18f9da400
10 changed files with 49 additions and 22 deletions
+4
View File
@@ -335,6 +335,10 @@ private:
|| nodep->displayType() == AstDisplayType::FATAL)) {
nodep->v3error(nodep->verilogKwd()+" only allowed under a assertion.");
}
if (nodep->displayType().needScopeTracking()
|| nodep->name().find("%m") != string::npos) {
nodep->scopeNamep(new AstScopeName(nodep->fileline()));
}
}
virtual void visit(AstScCtor* nodep, AstNUser*) {