aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-14 05:52:04 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-14 06:16:14 +0800
commitb2575b4bcbd15ec8353a01ae53133f6e71115cce (patch)
treeba14d6c97ca00ddc6d77876e6876c16eb7664803 /AST.h
parentb20ce4451bb4c2b64b112b8654b36502ae654a24 (diff)
downloaddexon-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.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/AST.h b/AST.h
index 3485631b..25c18f4f 100644
--- a/AST.h
+++ b/AST.h
@@ -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).