aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-03-21 00:50:26 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-03-25 21:26:05 +0800
commit9d6d7ccab86da43da03b79f7b74bf7146c0c0b14 (patch)
tree63ac5a52c0064df5a9a87644a8638beb7f3424c2 /AST.cpp
parent8f8e407306172ab75f5b200c1f1df87bb55fa2a6 (diff)
downloaddexon-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.cpp')
-rw-r--r--AST.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/AST.cpp b/AST.cpp
index d05eaf83..71af3286 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -311,8 +311,8 @@ void FunctionDefinition::checkTypeRequirements()
modifier->checkTypeRequirements(isConstructor() ?
dynamic_cast<ContractDefinition const&>(*getScope()).getBaseContracts() :
vector<ASTPointer<InheritanceSpecifier>>());
-
- m_body->checkTypeRequirements();
+ if (m_body)
+ m_body->checkTypeRequirements();
}
string FunctionDefinition::getCanonicalSignature() const