aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-03-27 18:53:17 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-03-27 18:53:17 +0800
commita7e78fadf5d8fd4d1d4300a4d8064d9bf51af687 (patch)
tree13c11ac023928ec9da021fe0ad4b89c12a832c6b /AST.cpp
parent9d6d7ccab86da43da03b79f7b74bf7146c0c0b14 (diff)
downloaddexon-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.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/AST.cpp b/AST.cpp
index 71af3286..52c58170 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -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();