diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-01 05:43:40 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-01 05:43:40 +0800 |
commit | a59546473916fcccb2ddc444e7264a94c551c617 (patch) | |
tree | 3e4906c2a5f0cdbcb7b135f80d8f967bb1d5b42a /Scanner.h | |
parent | db7b118ece60ae20f20c871bd257a1af5366423f (diff) | |
download | dexon-solidity-a59546473916fcccb2ddc444e7264a94c551c617.tar.gz dexon-solidity-a59546473916fcccb2ddc444e7264a94c551c617.tar.zst dexon-solidity-a59546473916fcccb2ddc444e7264a94c551c617.zip |
Simplifying scanning for natspec documentation
- Scanner no longer remembers the last natspect comment until
a new one is encountered. It remembers it only until the next
scan()
Diffstat (limited to 'Scanner.h')
-rw-r--r-- | Scanner.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -76,8 +76,7 @@ public: int getPos() const { return m_pos; } bool isPastEndOfInput(size_t _charsForward = 0) const { return (m_pos + _charsForward) >= m_source.size(); } char get(size_t _charsForward = 0) const { return m_source[m_pos + _charsForward]; } - char advanceAndGet(); - char advanceBy(size_t _chars); + char advanceAndGet(size_t _chars=1); char rollback(size_t _amount); ///@{ @@ -213,9 +212,8 @@ private: bool scanHexByte(char& o_scannedByte); - /// Scans a single Solidity token. Returns true if the scanned token was - /// a skipped documentation comment. False in all other cases. - bool scanToken(); + /// Scans a single Solidity token. + void scanToken(); /// Skips all whitespace and @returns true if something was skipped. bool skipWhitespace(); |