Merge pull request #7953 from ethereum/fix_visitor

Fix visitor.
This commit is contained in:
chriseth 2019-12-11 00:26:15 +01:00 committed by GitHub
commit 2b256cf8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}