mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
+11
-3
@@ -2760,9 +2760,17 @@ class LinkDotResolveVisitor final : public VNVisitor {
|
||||
// Lookup
|
||||
if (VSymEnt* const foundp = m_curSymp->findIdFallback(textp->text())) {
|
||||
if (AstVar* const varp = VN_CAST(foundp->nodep(), Var)) {
|
||||
// Attach found Text reference to PatMember
|
||||
nodep->varrefp(new AstVarRef{nodep->fileline(), varp, VAccess::READ});
|
||||
UINFO(9, indent() << " new " << nodep->varrefp() << endl);
|
||||
if (varp->isParam() || varp->isGenVar()) {
|
||||
// Attach found Text reference to PatMember
|
||||
nodep->varrefp(new AstVarRef{nodep->fileline(), varp, VAccess::READ});
|
||||
UINFO(9, indent() << " new " << nodep->varrefp() << endl);
|
||||
}
|
||||
}
|
||||
if (AstEnumItem* const itemp = VN_CAST(foundp->nodep(), EnumItem)) {
|
||||
// Attach enum item value to PatMember
|
||||
nodep->varrefp(
|
||||
new AstEnumItemRef{nodep->fileline(), itemp, foundp->classOrPackagep()});
|
||||
UINFO(9, indent() << " new " << itemp << endl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user