aboutsummaryrefslogtreecommitdiffstats
path: root/AST_accept.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-02-22 01:25:08 +0800
committerChristian <c@ethdev.com>2015-02-22 01:25:08 +0800
commit261786d909262e6cb4e9602cced76a3a22b7cb88 (patch)
treef4003a11a769bd9c15758b23fe24ec7f38482f57 /AST_accept.h
parentbe15e0b424d9a7bd181c8525dbb2eb0a26806c13 (diff)
downloaddexon-solidity-261786d909262e6cb4e9602cced76a3a22b7cb88.tar
dexon-solidity-261786d909262e6cb4e9602cced76a3a22b7cb88.tar.gz
dexon-solidity-261786d909262e6cb4e9602cced76a3a22b7cb88.tar.bz2
dexon-solidity-261786d909262e6cb4e9602cced76a3a22b7cb88.tar.lz
dexon-solidity-261786d909262e6cb4e9602cced76a3a22b7cb88.tar.xz
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.h6
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);
}