aboutsummaryrefslogtreecommitdiffstats
path: root/Scanner.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-04 01:52:28 +0800
committerChristian <c@ethdev.com>2014-12-04 01:52:28 +0800
commitd2cf34548322598ae067434a61a171bd190fc2c9 (patch)
tree9f89db707b8435f4774aea1115249e076fb37b74 /Scanner.h
parent254df50feab6bb4c9f013257591b73919e4013a5 (diff)
downloaddexon-solidity-d2cf34548322598ae067434a61a171bd190fc2c9.tar.gz
dexon-solidity-d2cf34548322598ae067434a61a171bd190fc2c9.tar.zst
dexon-solidity-d2cf34548322598ae067434a61a171bd190fc2c9.zip
Improved external interface for multi-source and multi-contract compilation.
Diffstat (limited to 'Scanner.h')
-rw-r--r--Scanner.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Scanner.h b/Scanner.h
index deb7df50..18b1f5d3 100644
--- a/Scanner.h
+++ b/Scanner.h
@@ -142,6 +142,8 @@ public:
std::string const& peekLiteral() const { return m_nextToken.literal; }
///@}
+ std::shared_ptr<std::string const> const& getSourceName() const { return m_sourceName; }
+
///@{
///@name Error printing helper functions
/// Functions that help pretty-printing parse errors
@@ -206,6 +208,7 @@ private:
TokenDesc m_nextToken; // desc for next token (one token look-ahead)
CharStream m_source;
+ std::shared_ptr<std::string const> m_sourceName;
/// one character look-ahead, equals 0 at end of input
char m_char;