diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-10 20:40:21 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-14 06:16:14 +0800 |
commit | 86e1d671cc4ed9b89576c80e16e58a8019115068 (patch) | |
tree | cc0feacef2294265c96dea27e5810b442f107323 /AST.h | |
parent | a295417f3476428c286f96433a42a96bfe29fee3 (diff) | |
download | dexon-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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: |