diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-21 00:50:26 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-25 21:26:05 +0800 |
commit | 9d6d7ccab86da43da03b79f7b74bf7146c0c0b14 (patch) | |
tree | 63ac5a52c0064df5a9a87644a8638beb7f3424c2 /AST_accept.h | |
parent | 8f8e407306172ab75f5b200c1f1df87bb55fa2a6 (diff) | |
download | dexon-solidity-9d6d7ccab86da43da03b79f7b74bf7146c0c0b14.tar.gz dexon-solidity-9d6d7ccab86da43da03b79f7b74bf7146c0c0b14.tar.zst dexon-solidity-9d6d7ccab86da43da03b79f7b74bf7146c0c0b14.zip |
Parsing of not fully implemented functions
- Adding the possibility of omitting a function body by simply ending a
function definition with a semicolon
- Such a function is marked as not fully implemented and any contract
that contains such a function is considered a not fully implemented contract
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 81ede8fc..3557f877 100644 --- a/AST_accept.h +++ b/AST_accept.h @@ -175,7 +175,8 @@ void FunctionDefinition::accept(ASTVisitor& _visitor) if (m_returnParameters) m_returnParameters->accept(_visitor); listAccept(m_functionModifiers, _visitor); - m_body->accept(_visitor); + if (m_body) + m_body->accept(_visitor); } _visitor.endVisit(*this); } @@ -188,7 +189,8 @@ void FunctionDefinition::accept(ASTConstVisitor& _visitor) const if (m_returnParameters) m_returnParameters->accept(_visitor); listAccept(m_functionModifiers, _visitor); - m_body->accept(_visitor); + if (m_body) + m_body->accept(_visitor); } _visitor.endVisit(*this); } |