aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-06 05:38:07 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-06 05:38:07 +0800
commit305f54b23f9643538a7e3a06d855271be0949035 (patch)
tree7d3820204b0df301e9c45e5a52d3575267530faa /AST.h
parenteaadc71b4c88603a7264211401d249ca1ead22e3 (diff)
downloaddexon-solidity-305f54b23f9643538a7e3a06d855271be0949035.tar.gz
dexon-solidity-305f54b23f9643538a7e3a06d855271be0949035.tar.zst
dexon-solidity-305f54b23f9643538a7e3a06d855271be0949035.zip
Minor Style fixes
Diffstat (limited to 'AST.h')
-rwxr-xr-xAST.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/AST.h b/AST.h
index ecf91c05..193e7310 100755
--- a/AST.h
+++ b/AST.h
@@ -1117,12 +1117,14 @@ private:
class Literal: public PrimaryExpression
{
public:
- enum class ethSubDenomination {
+ enum class SubDenomination
+ {
NONE = Token::ILLEGAL,
- WEI = Token::ETH_SUB_WEI,
- SZABO = Token::ETH_SUB_SZABO,
- FINNEY = Token::ETH_SUB_FINNEY,
- ETHER = Token::ETH_SUB_ETHER};
+ WEI = Token::SubWei,
+ SZABO = Token::SubSzabo,
+ FINNEY = Token::SubFinney,
+ ETHER = Token::SubEther
+ };
Literal(Location const& _location, Token::Value _token,
ASTPointer<ASTString> const& _value,
Token::Value _sub = Token::ILLEGAL);
@@ -1134,12 +1136,12 @@ public:
/// @returns the non-parsed value of the literal
ASTString const& getValue() const { return *m_value; }
- ethSubDenomination getSubDenomination() const { return m_subDenomination; }
+ SubDenomination getSubDenomination() const { return m_subDenomination; }
private:
Token::Value m_token;
ASTPointer<ASTString> m_value;
- ethSubDenomination m_subDenomination;
+ SubDenomination m_subDenomination;
};
/// @}