aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-10 20:40:21 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-14 06:16:14 +0800
commit86e1d671cc4ed9b89576c80e16e58a8019115068 (patch)
treecc0feacef2294265c96dea27e5810b442f107323 /AST.h
parenta295417f3476428c286f96433a42a96bfe29fee3 (diff)
downloaddexon-solidity-86e1d671cc4ed9b89576c80e16e58a8019115068.tar.gz
dexon-solidity-86e1d671cc4ed9b89576c80e16e58a8019115068.tar.zst
dexon-solidity-86e1d671cc4ed9b89576c80e16e58a8019115068.zip
Parsing an enum AST node
Diffstat (limited to 'AST.h')
-rw-r--r--AST.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/AST.h b/AST.h
index d3a7853a..02493df2 100644
--- a/AST.h
+++ b/AST.h
@@ -170,10 +170,13 @@ private:
*/
class EnumDeclaration : public Declaration
{
+ public:
EnumDeclaration(Location const& _location,
ASTPointer<ASTString> const& _name):
Declaration(_location, _name) {}
+ virtual void accept(ASTVisitor& _visitor) override;
+ virtual void accept(ASTConstVisitor& _visitor) const override;
TypePointer getType(ContractDefinition const*) const;
};
@@ -717,7 +720,7 @@ public:
Expression const& getCondition() const { return *m_condition; }
Statement const& getTrueStatement() const { return *m_trueBody; }
- /// @returns the "else" part of the if statement or nullptr if there is no "else" part.
+ /// @returns the "else" part of the if statement or nullptr if there is no "else" part.
Statement const* getFalseStatement() const { return m_falseBody.get(); }
private: