aboutsummaryrefslogtreecommitdiffstats
path: root/Scanner.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-01 05:43:40 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-01 05:43:40 +0800
commita59546473916fcccb2ddc444e7264a94c551c617 (patch)
tree3e4906c2a5f0cdbcb7b135f80d8f967bb1d5b42a /Scanner.h
parentdb7b118ece60ae20f20c871bd257a1af5366423f (diff)
downloaddexon-solidity-a59546473916fcccb2ddc444e7264a94c551c617.tar
dexon-solidity-a59546473916fcccb2ddc444e7264a94c551c617.tar.gz
dexon-solidity-a59546473916fcccb2ddc444e7264a94c551c617.tar.bz2
dexon-solidity-a59546473916fcccb2ddc444e7264a94c551c617.tar.lz
dexon-solidity-a59546473916fcccb2ddc444e7264a94c551c617.tar.xz
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.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/Scanner.h b/Scanner.h
index 70231010..e9262ba3 100644
--- a/Scanner.h
+++ b/Scanner.h
@@ -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();