diff options
author | Christian <c@ethdev.com> | 2014-11-07 09:06:37 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-11-08 03:02:57 +0800 |
commit | 64a4d77c8b8c559c6e9aad712f7288e4f107e946 (patch) | |
tree | 59a8bef45a09ac9b1682bf213886f713a12468c4 /AST.h | |
parent | 4c8e670530675c7b7774b0d5355ee9aadd92f3a2 (diff) | |
download | dexon-solidity-64a4d77c8b8c559c6e9aad712f7288e4f107e946.tar.gz dexon-solidity-64a4d77c8b8c559c6e9aad712f7288e4f107e946.tar.zst dexon-solidity-64a4d77c8b8c559c6e9aad712f7288e4f107e946.zip |
State variables.
Diffstat (limited to 'AST.h')
-rw-r--r-- | AST.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -116,9 +116,9 @@ public: virtual void accept(ASTVisitor& _visitor) override; - std::vector<ASTPointer<StructDefinition>> const& getDefinedStructs() { return m_definedStructs; } - std::vector<ASTPointer<VariableDeclaration>> const& getStateVariables() { return m_stateVariables; } - std::vector<ASTPointer<FunctionDefinition>> const& getDefinedFunctions() { return m_definedFunctions; } + std::vector<ASTPointer<StructDefinition>> const& getDefinedStructs() const { return m_definedStructs; } + std::vector<ASTPointer<VariableDeclaration>> const& getStateVariables() const { return m_stateVariables; } + std::vector<ASTPointer<FunctionDefinition>> const& getDefinedFunctions() const { return m_definedFunctions; } private: std::vector<ASTPointer<StructDefinition>> m_definedStructs; @@ -135,6 +135,8 @@ public: Declaration(_location, _name), m_members(_members) {} virtual void accept(ASTVisitor& _visitor) override; + std::vector<ASTPointer<VariableDeclaration>> const& getMembers() const { return m_members; } + private: std::vector<ASTPointer<VariableDeclaration>> m_members; }; |