aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-11-10 20:30:59 +0800
committerChristian <c@ethdev.com>2014-11-10 20:30:59 +0800
commita0c72065fee89c4558eeb4a98e5273633635bc39 (patch)
treed9629fd7a81f46b76d82086a211de831c19657b3 /AST.h
parentdc8fb45e1f1d098442458f14d80c343e4a445619 (diff)
parentd9822190c6fb3ac5025296c0f47977cca9547b91 (diff)
downloaddexon-solidity-a0c72065fee89c4558eeb4a98e5273633635bc39.tar.gz
dexon-solidity-a0c72065fee89c4558eeb4a98e5273633635bc39.tar.zst
dexon-solidity-a0c72065fee89c4558eeb4a98e5273633635bc39.zip
Merge remote-tracking branch 'ethereum/develop' into sol_optimizer
Conflicts: libevmcore/Instruction.cpp
Diffstat (limited to 'AST.h')
-rw-r--r--AST.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/AST.h b/AST.h
index ce9190ea..19328e5f 100644
--- a/AST.h
+++ b/AST.h
@@ -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;
};