diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-14 05:52:04 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-14 06:16:14 +0800 |
commit | b2575b4bcbd15ec8353a01ae53133f6e71115cce (patch) | |
tree | ba14d6c97ca00ddc6d77876e6876c16eb7664803 /AST.h | |
parent | b20ce4451bb4c2b64b112b8654b36502ae654a24 (diff) | |
download | dexon-solidity-b2575b4bcbd15ec8353a01ae53133f6e71115cce.tar.gz dexon-solidity-b2575b4bcbd15ec8353a01ae53133f6e71115cce.tar.zst dexon-solidity-b2575b4bcbd15ec8353a01ae53133f6e71115cce.zip |
Addressing issues with Enums in Solidity
Diffstat (limited to 'AST.h')
-rw-r--r-- | AST.h | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -166,21 +166,6 @@ private: }; /** - * Declaration of an Enum Value - */ -class EnumValue: public Declaration -{ - public: - EnumValue(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* = nullptr) const; -}; - -/** * Abstract class that is added to each AST node that can store local variables. */ class VariableScope @@ -360,6 +345,21 @@ private: }; /** + * Declaration of an Enum Value + */ +class EnumValue: public Declaration +{ + public: + EnumValue(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* = nullptr) const; +}; + +/** * Parameter list, used as function parameter list and return list. * None of the parameters is allowed to contain mappings (not even recursively * inside structs). |