diff options
author | Christian <c@ethdev.com> | 2014-12-04 01:52:28 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-04 01:52:28 +0800 |
commit | d2cf34548322598ae067434a61a171bd190fc2c9 (patch) | |
tree | 9f89db707b8435f4774aea1115249e076fb37b74 /Scanner.h | |
parent | 254df50feab6bb4c9f013257591b73919e4013a5 (diff) | |
download | dexon-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |