diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-05 05:02:35 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-05 05:02:35 +0800 |
commit | 426f9a286071714de61accd04a13ce9d2446ba30 (patch) | |
tree | bc682b079d87eca481b5816a5aace2e6df7bfe32 /Token.h | |
parent | dca5f7b57bb5b535930d437c806f48a25cf6b569 (diff) | |
download | dexon-solidity-426f9a286071714de61accd04a13ce9d2446ba30.tar dexon-solidity-426f9a286071714de61accd04a13ce9d2446ba30.tar.gz dexon-solidity-426f9a286071714de61accd04a13ce9d2446ba30.tar.bz2 dexon-solidity-426f9a286071714de61accd04a13ce9d2446ba30.tar.lz dexon-solidity-426f9a286071714de61accd04a13ce9d2446ba30.tar.xz dexon-solidity-426f9a286071714de61accd04a13ce9d2446ba30.tar.zst dexon-solidity-426f9a286071714de61accd04a13ce9d2446ba30.zip |
Tests for ether subdenominations. Work in progress
Diffstat (limited to 'Token.h')
-rw-r--r-- | Token.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -383,6 +383,7 @@ public: static bool isCountOp(Value op) { return op == INC || op == DEC; } static bool isShiftOp(Value op) { return (SHL <= op) && (op <= SHR); } static bool isVisibilitySpecifier(Value op) { return op == PUBLIC || op == PRIVATE || op == PROTECTED; } + static bool isEtherSubdenomination(Value op) { return op == ETH_SUB_WEI || op == ETH_SUB_SZABO || op == ETH_SUB_FINNEY || op == Token::ETH_SUB_ETHER; } // Returns a string corresponding to the JS token string // (.e., "<" for the token LT) or NULL if the token doesn't |