From 005100c4867f133e86a2675be0dd9370fed3e191 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Thu, 29 Jan 2015 16:39:30 +0100 Subject: Contract Interface Functions now return FunctionType - Enchanced Function Type by declaration so that it can provide all the required information at each place interface functions are consumed - Changed all places where interface functions was used. - Simplified Mix's FunctionDefinition code --- AST.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'AST.h') diff --git a/AST.h b/AST.h index f3b18d39..e0fb1485 100755 --- a/AST.h +++ b/AST.h @@ -294,7 +294,7 @@ public: /// @returns a map of canonical function signatures to FunctionDefinitions /// as intended for use by the ABI. - std::map, FunctionDescription> getInterfaceFunctions() const; + std::map, std::shared_ptr> getInterfaceFunctions() const; /// List of all (direct and indirect) base contracts in order from derived to base, including /// the contract itself. Available after name resolution @@ -307,7 +307,7 @@ public: private: void checkIllegalOverrides() const; - std::vector, std::shared_ptr, Declaration const*>> const& getInterfaceFunctionList() const; + std::vector, std::shared_ptr>> const& getInterfaceFunctionList() const; std::vector> m_baseContracts; std::vector> m_definedStructs; @@ -316,7 +316,7 @@ private: std::vector> m_functionModifiers; std::vector m_linearizedBaseContracts; - mutable std::unique_ptr, std::shared_ptr, Declaration const*>>> m_interfaceFunctionList; + mutable std::unique_ptr, std::shared_ptr>>> m_interfaceFunctionList; }; class InheritanceSpecifier: public ASTNode -- cgit v1.2.3