diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-26 19:49:05 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-28 23:57:32 +0800 |
commit | 8b0c866f025f3b48db36b0e48451062806a1ab06 (patch) | |
tree | b6dd46f48b66478feefc7e1c1810535c6bd1f700 /libsolidity/ast/AST.h | |
parent | 79d13366874c432c2f8f2adf3cd8cc00638c6a98 (diff) | |
download | dexon-solidity-8b0c866f025f3b48db36b0e48451062806a1ab06.tar dexon-solidity-8b0c866f025f3b48db36b0e48451062806a1ab06.tar.gz dexon-solidity-8b0c866f025f3b48db36b0e48451062806a1ab06.tar.bz2 dexon-solidity-8b0c866f025f3b48db36b0e48451062806a1ab06.tar.lz dexon-solidity-8b0c866f025f3b48db36b0e48451062806a1ab06.tar.xz dexon-solidity-8b0c866f025f3b48db36b0e48451062806a1ab06.tar.zst dexon-solidity-8b0c866f025f3b48db36b0e48451062806a1ab06.zip |
Add hasHexPrefix() to AST::Literal
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r-- | libsolidity/ast/AST.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index 83572692..24b16176 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -1590,6 +1590,9 @@ public: SubDenomination subDenomination() const { return m_subDenomination; } + /// @returns true if this is a number with a hex prefix. + bool hasHexPrefix() const; + /// @returns true if this looks like a checksummed address. bool looksLikeAddress() const; /// @returns true if it passes the address checksum test. |