aboutsummaryrefslogtreecommitdiffstats
path: root/liblangutil
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-11-29 07:56:25 +0800
committerChristian Parpart <christian@ethereum.org>2018-11-29 19:28:57 +0800
commit6060a3682c077d7b329ec9171abdacbf1b383ec7 (patch)
tree2d8e676f599809cd18173f520624bc0f90b1c118 /liblangutil
parent5ec67ee477f021b25355c546e4ba9b69b79040ce (diff)
downloaddexon-solidity-6060a3682c077d7b329ec9171abdacbf1b383ec7.tar.gz
dexon-solidity-6060a3682c077d7b329ec9171abdacbf1b383ec7.tar.zst
dexon-solidity-6060a3682c077d7b329ec9171abdacbf1b383ec7.zip
liblangutil: adds Scanner.charStream() accessor
Diffstat (limited to 'liblangutil')
-rw-r--r--liblangutil/Scanner.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/liblangutil/Scanner.h b/liblangutil/Scanner.h
index d01e71e2..9c29edfd 100644
--- a/liblangutil/Scanner.h
+++ b/liblangutil/Scanner.h
@@ -94,6 +94,8 @@ public:
std::string source() const { return m_source.source(); }
+ CharStream const& charStream() const noexcept { return m_source; }
+
/// Resets the scanner as if newly constructed with _source and _sourceName as input.
void reset(CharStream _source, std::string _sourceName);
/// Resets scanner to the start of input.