diff options
author | VoR0220 <catalanor0220@gmail.com> | 2016-03-31 02:09:38 +0800 |
---|---|---|
committer | VoR0220 <catalanor0220@gmail.com> | 2016-03-31 02:09:38 +0800 |
commit | 9404600b3f99acb633f6400baa0b53db42a8a626 (patch) | |
tree | a13aa15578b043ab3e758a4730094b9d249c0c8f /libsolidity/parsing/Scanner.h | |
parent | 427b9557d688fe901814350099540ce333a59acd (diff) | |
download | dexon-solidity-9404600b3f99acb633f6400baa0b53db42a8a626.tar dexon-solidity-9404600b3f99acb633f6400baa0b53db42a8a626.tar.gz dexon-solidity-9404600b3f99acb633f6400baa0b53db42a8a626.tar.bz2 dexon-solidity-9404600b3f99acb633f6400baa0b53db42a8a626.tar.lz dexon-solidity-9404600b3f99acb633f6400baa0b53db42a8a626.tar.xz dexon-solidity-9404600b3f99acb633f6400baa0b53db42a8a626.tar.zst dexon-solidity-9404600b3f99acb633f6400baa0b53db42a8a626.zip |
helper function in scanner and corresponding edits to parserBase
Diffstat (limited to 'libsolidity/parsing/Scanner.h')
-rw-r--r-- | libsolidity/parsing/Scanner.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libsolidity/parsing/Scanner.h b/libsolidity/parsing/Scanner.h index cffcec8e..ac9f18e8 100644 --- a/libsolidity/parsing/Scanner.h +++ b/libsolidity/parsing/Scanner.h @@ -119,6 +119,13 @@ public: { return m_currentToken.token; } + ElementaryTypeNameToken currentElementaryTypeNameToken() + { + unsigned firstSize; + unsigned secondSize; + std::tie(firstSize, secondSize) = m_currentToken.extendedTokenInfo; + return ElementaryTypeNameToken(m_currentToken.token, firstSize, secondSize); + } SourceLocation currentLocation() const { return m_currentToken.location; } std::string const& currentLiteral() const { return m_currentToken.literal; } |