aboutsummaryrefslogtreecommitdiffstats
path: root/AST_accept.h
diff options
context:
space:
mode:
Diffstat (limited to 'AST_accept.h')
-rw-r--r--AST_accept.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/AST_accept.h b/AST_accept.h
index 15f6b7ee..9568da5b 100644
--- a/AST_accept.h
+++ b/AST_accept.h
@@ -105,22 +105,36 @@ void InheritanceSpecifier::accept(ASTConstVisitor& _visitor) const
_visitor.endVisit(*this);
}
-void StructDefinition::accept(ASTVisitor& _visitor)
+void EnumDefinition::accept(ASTVisitor& _visitor)
{
if (_visitor.visit(*this))
listAccept(m_members, _visitor);
_visitor.endVisit(*this);
}
-void EnumDefinition::accept(ASTVisitor& _visitor)
+void EnumDefinition::accept(ASTConstVisitor& _visitor) const
{
- _visitor.visit(*this)
+ if (_visitor.visit(*this))
+ listAccept(m_members, _visitor);
_visitor.endVisit(*this);
}
-void EnumDefinition::accept(ASTConstVisitor& _visitor) const
+void EnumDeclaration::accept(ASTVisitor& _visitor)
+{
+ _visitor.visit(*this);
+ _visitor.endVisit(*this);
+}
+
+void EnumDeclaration::accept(ASTConstVisitor& _visitor) const
+{
+ _visitor.visit(*this);
+ _visitor.endVisit(*this);
+}
+
+void StructDefinition::accept(ASTVisitor& _visitor)
{
- _visitor.visit(*this)
+ if (_visitor.visit(*this))
+ listAccept(m_members, _visitor);
_visitor.endVisit(*this);
}