Fix visitor.

This commit is contained in:
chriseth 2019-12-10 16:53:33 +01:00
parent 2b2df31b0e
commit a66b5ea0ad

View File

@ -239,6 +239,8 @@ void VariableDeclaration::accept(ASTVisitor& _visitor)
{
if (m_typeName)
m_typeName->accept(_visitor);
if (m_overrides)
m_overrides->accept(_visitor);
if (m_value)
m_value->accept(_visitor);
}
@ -251,6 +253,8 @@ void VariableDeclaration::accept(ASTConstVisitor& _visitor) const
{
if (m_typeName)
m_typeName->accept(_visitor);
if (m_overrides)
m_overrides->accept(_visitor);
if (m_value)
m_value->accept(_visitor);
}