aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-02-06 20:38:10 +0800
committerChristian <c@ethdev.com>2015-02-06 20:38:29 +0800
commit82edc1ca6d694ad022c6b0e251da70393dfeb38a (patch)
tree862dc4a01f217ae4a71feb90f64cd901bda2b32a /AST.h
parent16fc2d651e1a96e3f86d98a8b3fb1fa43c9b20c1 (diff)
downloaddexon-solidity-82edc1ca6d694ad022c6b0e251da70393dfeb38a.tar.gz
dexon-solidity-82edc1ca6d694ad022c6b0e251da70393dfeb38a.tar.zst
dexon-solidity-82edc1ca6d694ad022c6b0e251da70393dfeb38a.zip
Some fixes for the ether units parser.
Diffstat (limited to 'AST.h')
-rwxr-xr-xAST.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/AST.h b/AST.h
index bced99f9..47f2a40c 100755
--- a/AST.h
+++ b/AST.h
@@ -1127,7 +1127,8 @@ public:
};
Literal(Location const& _location, Token::Value _token,
ASTPointer<ASTString> const& _value,
- Token::Value _sub = Token::ILLEGAL);
+ SubDenomination _sub = SubDenomination::None):
+ PrimaryExpression(_location), m_token(_token), m_value(_value), m_subDenomination(_sub) {}
virtual void accept(ASTVisitor& _visitor) override;
virtual void accept(ASTConstVisitor& _visitor) const override;
virtual void checkTypeRequirements() override;