aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-15 23:09:50 +0800
committerChristian <c@ethdev.com>2014-12-15 23:09:50 +0800
commitc40725c22adaa2159bd06894740f7559733afbb4 (patch)
tree979ec3f5ba0d4540097e56fd08f809880f35b7de /AST.h
parent40f7c32e57cf8b09d45f52935b8726f5baef5358 (diff)
downloaddexon-solidity-c40725c22adaa2159bd06894740f7559733afbb4.tar.gz
dexon-solidity-c40725c22adaa2159bd06894740f7559733afbb4.tar.zst
dexon-solidity-c40725c22adaa2159bd06894740f7559733afbb4.zip
Check that constructor does not have "returns" directive.
Diffstat (limited to 'AST.h')
-rw-r--r--AST.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/AST.h b/AST.h
index 3a15bbeb..72f96394 100644
--- a/AST.h
+++ b/AST.h
@@ -174,6 +174,10 @@ public:
std::vector<ASTPointer<VariableDeclaration>> const& getStateVariables() const { return m_stateVariables; }
std::vector<ASTPointer<FunctionDefinition>> const& getDefinedFunctions() const { return m_definedFunctions; }
+ /// Checks that the constructor does not have a "returns" statement and calls
+ /// checkTypeRequirements on all its functions.
+ void checkTypeRequirements();
+
/// @return A shared pointer of an ASTString.
/// Can contain a nullptr in which case indicates absence of documentation
ASTPointer<ASTString> const& getDocumentation() const { return m_documentation; }