Filter for params
Signed-off-by: Pawel Kojma <pkojma@internships.antmicro.com>
This commit is contained in:
parent
4f5d3b50b8
commit
7d10e473df
|
|
@ -27,7 +27,6 @@
|
||||||
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
|
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
|
||||||
|
|
||||||
#include "V3LinkResolve.h"
|
#include "V3LinkResolve.h"
|
||||||
|
|
||||||
#include "V3String.h"
|
#include "V3String.h"
|
||||||
#include "V3Task.h"
|
#include "V3Task.h"
|
||||||
|
|
||||||
|
|
@ -73,8 +72,9 @@ class LinkResolveVisitor final : public VNVisitor {
|
||||||
void visit(AstClass* nodep) override {
|
void visit(AstClass* nodep) override {
|
||||||
VL_RESTORER(m_classp);
|
VL_RESTORER(m_classp);
|
||||||
m_classp = nodep;
|
m_classp = nodep;
|
||||||
nodep->foreachMember(
|
nodep->foreachMember([&](AstClass* const, AstVar* const varp) {
|
||||||
[&](AstClass* const, AstVar* const varp) { varp->varType(VVarType::MEMBER); });
|
if (!varp->isParam()) varp->varType(VVarType::MEMBER);
|
||||||
|
});
|
||||||
iterateChildren(nodep);
|
iterateChildren(nodep);
|
||||||
}
|
}
|
||||||
void visit(AstConstraint* nodep) override {
|
void visit(AstConstraint* nodep) override {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue