diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-29 01:06:45 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-29 04:46:17 +0800 |
commit | b5a786dda19e54fa587b1b693e7a139818d65b9e (patch) | |
tree | 1192fe666c33981cc668f479907af8ec30b790de /AST.h | |
parent | 1b25f85a66d5e05ff0684c33c6d43c3909f10200 (diff) | |
download | dexon-solidity-b5a786dda19e54fa587b1b693e7a139818d65b9e.tar.gz dexon-solidity-b5a786dda19e54fa587b1b693e7a139818d65b9e.tar.zst dexon-solidity-b5a786dda19e54fa587b1b693e7a139818d65b9e.zip |
Various fixes pertaining to State Variable accessors
Diffstat (limited to 'AST.h')
-rwxr-xr-x | AST.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -158,16 +158,16 @@ private: /** -* Generic Parameter description used by @see FunctionDescription to return -* a descripton of its parameters. -*/ + * Generic Parameter description used by @see FunctionDescription to return + * a descripton of its parameters. + */ struct ParamDescription { ParamDescription(std::string const& _name, std::string const& _type): m_description(_name, _type){} - std::string getName() const; - std::string getType() const; + std::string const& getName() const; + std::string const& getType() const; std::pair<std::string, std::string> m_description; }; @@ -456,6 +456,7 @@ private: ASTPointer<TypeName> m_typeName; ///< can be empty ("var") bool m_isPublic; ///< Whether there is an accessor for it or not bool m_isStateVariable; ///< Whether or not this is a contract state variable + std::shared_ptr<Type const> m_type; ///< derived type, initially empty }; |