Do not check base class
Signed-off-by: Pawel Kojma <pkojma@internships.antmicro.com>
This commit is contained in:
parent
220d260473
commit
223bf64bde
|
|
@ -2609,7 +2609,7 @@ public:
|
||||||
"T_Callable 'f' must have a signature compatible with 'void(AstClass*, T_Node*)', "
|
"T_Callable 'f' must have a signature compatible with 'void(AstClass*, T_Node*)', "
|
||||||
"with 'T_Node' being a subtype of 'AstNode'");
|
"with 'T_Node' being a subtype of 'AstNode'");
|
||||||
if (const AstClassExtends* const cextendsp = this->extendsp()) {
|
if (const AstClassExtends* const cextendsp = this->extendsp()) {
|
||||||
if (cextendsp->classOrNullp()) cextendsp->classp()->foreachMember(f);
|
cextendsp->classp()->foreachMember(f);
|
||||||
}
|
}
|
||||||
for (AstNode* stmtp = stmtsp(); stmtp; stmtp = stmtp->nextp()) {
|
for (AstNode* stmtp = stmtsp(); stmtp; stmtp = stmtp->nextp()) {
|
||||||
if (AstNode::privateTypeTest<T_Node>(stmtp)) f(this, static_cast<T_Node*>(stmtp));
|
if (AstNode::privateTypeTest<T_Node>(stmtp)) f(this, static_cast<T_Node*>(stmtp));
|
||||||
|
|
|
||||||
|
|
@ -72,9 +72,11 @@ 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([&](AstClass* const, AstVar* const varp) {
|
for (AstNode* stmtp = nodep->stmtsp(); stmtp; stmtp = stmtp->nextp()) {
|
||||||
if (!varp->isParam()) varp->varType(VVarType::MEMBER);
|
if (AstVar* const varp = VN_CAST(stmtp, Var)) {
|
||||||
});
|
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