From 86e1d671cc4ed9b89576c80e16e58a8019115068 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Tue, 10 Feb 2015 13:40:21 +0100 Subject: Parsing an enum AST node --- AST.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'AST.h') 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 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: -- cgit