aboutsummaryrefslogtreecommitdiffstats
path: root/Scanner.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-24 00:14:59 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-25 00:16:22 +0800
commit1891020ffb7d91b7eca4f69cc65e3722d6920361 (patch)
treec120bea18512e313f9f97fb0500e292a1b3f0fe8 /Scanner.h
parent38cb123a82dfa0d77c7eb629dfb9307463548a12 (diff)
downloaddexon-solidity-1891020ffb7d91b7eca4f69cc65e3722d6920361.tar.gz
dexon-solidity-1891020ffb7d91b7eca4f69cc65e3722d6920361.tar.zst
dexon-solidity-1891020ffb7d91b7eca4f69cc65e3722d6920361.zip
Moving Source Location libdevcore
- Big plus is we now remove the useless header libsolibity/BaseTypes.h
Diffstat (limited to 'Scanner.h')
-rw-r--r--Scanner.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Scanner.h b/Scanner.h
index d93b79df..61fb8903 100644
--- a/Scanner.h
+++ b/Scanner.h
@@ -55,7 +55,7 @@
#include <libdevcore/Common.h>
#include <libdevcore/Log.h>
#include <libdevcore/CommonData.h>
-#include <libsolidity/BaseTypes.h>
+#include <libdevcore/SourceLocation.h>
#include <libsolidity/Token.h>
namespace dev
@@ -120,14 +120,14 @@ public:
return m_currentToken.token;
}
- Location getCurrentLocation() const { return m_currentToken.location; }
+ SourceLocation getCurrentLocation() const { return m_currentToken.location; }
std::string const& getCurrentLiteral() const { return m_currentToken.literal; }
///@}
///@{
///@name Information about the current comment token
- Location getCurrentCommentLocation() const { return m_skippedComment.location; }
+ SourceLocation getCurrentCommentLocation() const { return m_skippedComment.location; }
std::string const& getCurrentCommentLiteral() const { return m_skippedComment.literal; }
/// Called by the parser during FunctionDefinition parsing to clear the current comment
void clearCurrentCommentLiteral() { m_skippedComment.literal.clear(); }
@@ -139,7 +139,7 @@ public:
/// Returns the next token without advancing input.
Token::Value peekNextToken() const { return m_nextToken.token; }
- Location peekLocation() const { return m_nextToken.location; }
+ SourceLocation peekLocation() const { return m_nextToken.location; }
std::string const& peekLiteral() const { return m_nextToken.literal; }
///@}
@@ -158,7 +158,7 @@ private:
struct TokenDesc
{
Token::Value token;
- Location location;
+ SourceLocation location;
std::string literal;
};