summaryrefslogtreecommitdiff
path: root/src/wast-parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wast-parser.cc')
-rw-r--r--src/wast-parser.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wast-parser.cc b/src/wast-parser.cc
index a3cc7a66..f3fe5e25 100644
--- a/src/wast-parser.cc
+++ b/src/wast-parser.cc
@@ -584,7 +584,7 @@ void WastParser::Error(Location loc, const char* format, ...) {
Token WastParser::GetToken() {
if (tokens_.empty()) {
- tokens_.push_back(lexer_->GetToken(this));
+ tokens_.push_back(lexer_->GetToken());
}
return tokens_.front();
}
@@ -595,7 +595,7 @@ Location WastParser::GetLocation() {
TokenType WastParser::Peek(size_t n) {
while (tokens_.size() <= n) {
- Token cur = lexer_->GetToken(this);
+ Token cur = lexer_->GetToken();
if (cur.token_type() != TokenType::LparAnn) {
tokens_.push_back(cur);
} else {
@@ -613,7 +613,7 @@ TokenType WastParser::Peek(size_t n) {
}
int indent = 1;
while (indent > 0) {
- cur = lexer_->GetToken(this);
+ cur = lexer_->GetToken();
switch (cur.token_type()) {
case TokenType::Lpar:
case TokenType::LparAnn: