diff options
author | Christian <c@ethdev.com> | 2015-02-22 01:25:08 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-02-22 01:25:08 +0800 |
commit | 261786d909262e6cb4e9602cced76a3a22b7cb88 (patch) | |
tree | f4003a11a769bd9c15758b23fe24ec7f38482f57 /AST_accept.h | |
parent | be15e0b424d9a7bd181c8525dbb2eb0a26806c13 (diff) | |
download | dexon-solidity-261786d909262e6cb4e9602cced76a3a22b7cb88.tar.gz dexon-solidity-261786d909262e6cb4e9602cced76a3a22b7cb88.tar.zst dexon-solidity-261786d909262e6cb4e9602cced76a3a22b7cb88.zip |
Allow conversion to dynamic arrays and update grammar.
Diffstat (limited to 'AST_accept.h')
-rw-r--r-- | AST_accept.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/AST_accept.h b/AST_accept.h index 61b8280d..81ede8fc 100644 --- a/AST_accept.h +++ b/AST_accept.h @@ -626,7 +626,8 @@ void IndexAccess::accept(ASTVisitor& _visitor) if (_visitor.visit(*this)) { m_base->accept(_visitor); - m_index->accept(_visitor); + if (m_index) + m_index->accept(_visitor); } _visitor.endVisit(*this); } @@ -636,7 +637,8 @@ void IndexAccess::accept(ASTConstVisitor& _visitor) const if (_visitor.visit(*this)) { m_base->accept(_visitor); - m_index->accept(_visitor); + if (m_index) + m_index->accept(_visitor); } _visitor.endVisit(*this); } |