diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-26 03:35:55 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-02 18:51:13 +0800 |
commit | 5e4665b84deda7943edf1fab0ab32c48c4629fac (patch) | |
tree | 26655e77e3a428539843046262886beb6b44f482 /AST.h | |
parent | a5b4f18dd7291e403237061d5f9660db0299601d (diff) | |
download | dexon-solidity-5e4665b84deda7943edf1fab0ab32c48c4629fac.tar.gz dexon-solidity-5e4665b84deda7943edf1fab0ab32c48c4629fac.tar.zst dexon-solidity-5e4665b84deda7943edf1fab0ab32c48c4629fac.zip |
Adding inheritable members to a contract
Diffstat (limited to 'AST.h')
-rw-r--r-- | AST.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -247,6 +247,9 @@ public: /// as intended for use by the ABI. std::map<FixedHash<4>, FunctionTypePointer> getInterfaceFunctions() const; + /// @returns a list of the inheritable members of this contract + std::vector<ASTPointer<Declaration>> const& getInheritableMembers() const; + /// List of all (direct and indirect) base contracts in order from derived to base, including /// the contract itself. Available after name resolution std::vector<ContractDefinition const*> const& getLinearizedBaseContracts() const { return m_linearizedBaseContracts; } @@ -273,6 +276,7 @@ private: std::vector<ContractDefinition const*> m_linearizedBaseContracts; mutable std::unique_ptr<std::vector<std::pair<FixedHash<4>, FunctionTypePointer>>> m_interfaceFunctionList; mutable std::unique_ptr<std::vector<ASTPointer<EventDefinition>>> m_interfaceEvents; + mutable std::unique_ptr<std::vector<ASTPointer<Declaration>>> m_inheritableMembers; }; class InheritanceSpecifier: public ASTNode |