diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-27 18:53:17 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-27 18:53:17 +0800 |
commit | a7e78fadf5d8fd4d1d4300a4d8064d9bf51af687 (patch) | |
tree | 13c11ac023928ec9da021fe0ad4b89c12a832c6b /AST.cpp | |
parent | 9d6d7ccab86da43da03b79f7b74bf7146c0c0b14 (diff) | |
download | dexon-solidity-a7e78fadf5d8fd4d1d4300a4d8064d9bf51af687.tar.gz dexon-solidity-a7e78fadf5d8fd4d1d4300a4d8064d9bf51af687.tar.zst dexon-solidity-a7e78fadf5d8fd4d1d4300a4d8064d9bf51af687.zip |
Moving contract fullyImplemented check to TypeRequirements
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -60,6 +60,7 @@ void ContractDefinition::checkTypeRequirements() FunctionDefinition const* fallbackFunction = nullptr; for (ASTPointer<FunctionDefinition> const& function: getDefinedFunctions()) + { if (function->getName().empty()) { if (fallbackFunction) @@ -71,6 +72,9 @@ void ContractDefinition::checkTypeRequirements() BOOST_THROW_EXCEPTION(fallbackFunction->getParameterList().createTypeError("Fallback function cannot take parameters.")); } } + if (!function->isFullyImplemented()) + setFullyImplemented(false); + } for (ASTPointer<ModifierDefinition> const& modifier: getFunctionModifiers()) modifier->checkTypeRequirements(); |