From 2f64c56ef3a49f7551a708f63c4ed836efce7b73 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 12 Dec 2014 16:49:26 +0100 Subject: Create contracts. --- AST_accept.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'AST_accept.h') diff --git a/AST_accept.h b/AST_accept.h index 173273c6..e0454d33 100644 --- a/AST_accept.h +++ b/AST_accept.h @@ -419,6 +419,26 @@ void FunctionCall::accept(ASTConstVisitor& _visitor) const _visitor.endVisit(*this); } +void NewExpression::accept(ASTVisitor& _visitor) +{ + if (_visitor.visit(*this)) + { + m_contractName->accept(_visitor); + listAccept(m_arguments, _visitor); + } + _visitor.endVisit(*this); +} + +void NewExpression::accept(ASTConstVisitor& _visitor) const +{ + if (_visitor.visit(*this)) + { + m_contractName->accept(_visitor); + listAccept(m_arguments, _visitor); + } + _visitor.endVisit(*this); +} + void MemberAccess::accept(ASTVisitor& _visitor) { if (_visitor.visit(*this)) -- cgit v1.2.3