aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-29 01:06:45 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-29 04:46:17 +0800
commitb5a786dda19e54fa587b1b693e7a139818d65b9e (patch)
tree1192fe666c33981cc668f479907af8ec30b790de /AST.h
parent1b25f85a66d5e05ff0684c33c6d43c3909f10200 (diff)
downloaddexon-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-xAST.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/AST.h b/AST.h
index a99bc39c..f397c13a 100755
--- a/AST.h
+++ b/AST.h
@@ -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
};