aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST_accept.h
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-04-10 17:22:26 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-04-10 18:09:34 +0800
commit3eedbc6a9c60888dd967d6673a34511947da4aa1 (patch)
tree0a6e356f44df3763acb57327b34ae621f80cf068 /libsolidity/ast/AST_accept.h
parentb52614116e9c72d840b375b0bbb1c56a63df3680 (diff)
downloaddexon-solidity-3eedbc6a9c60888dd967d6673a34511947da4aa1.tar
dexon-solidity-3eedbc6a9c60888dd967d6673a34511947da4aa1.tar.gz
dexon-solidity-3eedbc6a9c60888dd967d6673a34511947da4aa1.tar.bz2
dexon-solidity-3eedbc6a9c60888dd967d6673a34511947da4aa1.tar.lz
dexon-solidity-3eedbc6a9c60888dd967d6673a34511947da4aa1.tar.xz
dexon-solidity-3eedbc6a9c60888dd967d6673a34511947da4aa1.tar.zst
dexon-solidity-3eedbc6a9c60888dd967d6673a34511947da4aa1.zip
Error when using no parentheses in modifier-style constructor calls.
Diffstat (limited to 'libsolidity/ast/AST_accept.h')
-rw-r--r--libsolidity/ast/AST_accept.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libsolidity/ast/AST_accept.h b/libsolidity/ast/AST_accept.h
index dac414fc..aeff6e4a 100644
--- a/libsolidity/ast/AST_accept.h
+++ b/libsolidity/ast/AST_accept.h
@@ -264,7 +264,8 @@ void ModifierInvocation::accept(ASTVisitor& _visitor)
if (_visitor.visit(*this))
{
m_modifierName->accept(_visitor);
- listAccept(m_arguments, _visitor);
+ if (m_arguments)
+ listAccept(*m_arguments, _visitor);
}
_visitor.endVisit(*this);
}
@@ -274,7 +275,8 @@ void ModifierInvocation::accept(ASTConstVisitor& _visitor) const
if (_visitor.visit(*this))
{
m_modifierName->accept(_visitor);
- listAccept(m_arguments, _visitor);
+ if (m_arguments)
+ listAccept(*m_arguments, _visitor);
}
_visitor.endVisit(*this);
}