aboutsummaryrefslogtreecommitdiffstats
path: root/liblangutil/ParserBase.h
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-11-28 23:15:45 +0800
committerChristian Parpart <christian@ethereum.org>2018-11-29 08:15:24 +0800
commit5ec67ee477f021b25355c546e4ba9b69b79040ce (patch)
treee292d866998c1eed7484666fcea0eea18c9bf5ad /liblangutil/ParserBase.h
parent463951e8cdd9d3d36b4d1b1e1dd41bb8f54bb73c (diff)
downloaddexon-solidity-5ec67ee477f021b25355c546e4ba9b69b79040ce.tar.gz
dexon-solidity-5ec67ee477f021b25355c546e4ba9b69b79040ce.tar.zst
dexon-solidity-5ec67ee477f021b25355c546e4ba9b69b79040ce.zip
liblangutil: adds ParserBase::charStream() accessor
Diffstat (limited to 'liblangutil/ParserBase.h')
-rw-r--r--liblangutil/ParserBase.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/liblangutil/ParserBase.h b/liblangutil/ParserBase.h
index 3ecabed5..0007da63 100644
--- a/liblangutil/ParserBase.h
+++ b/liblangutil/ParserBase.h
@@ -23,6 +23,7 @@
#pragma once
#include <liblangutil/Token.h>
+#include <liblangutil/Scanner.h>
#include <memory>
#include <string>
@@ -38,6 +39,7 @@ public:
explicit ParserBase(ErrorReporter& errorReporter): m_errorReporter(errorReporter) {}
std::shared_ptr<std::string const> const& sourceName() const;
+ CharStream const* charStream() const { return &m_scanner->charStream(); }
protected:
/// Utility class that creates an error and throws an exception if the