Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: src/preparser.h

Issue 785233005: Rename shadowing `pos` variable in ParseTemplateLiteral() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index b378f47f6576f2739bd9bcad36da634dcff9c752..847f994efe750fce20afa057c86878c46538f9e2 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -2838,12 +2838,12 @@ ParserBase<Traits>::ParseTemplateLiteral(ExpressionT tag, int start, bool* ok) {
return Traits::EmptyExpression();
}
- int pos = peek_position();
+ int expr_pos = peek_position();
ExpressionT expression = this->ParseExpression(true, CHECK_OK);
Traits::AddTemplateExpression(&ts, expression);
if (peek() != Token::RBRACE) {
- ReportMessageAt(Scanner::Location(pos, peek_position()),
+ ReportMessageAt(Scanner::Location(expr_pos, peek_position()),
"unterminated_template_expr");
*ok = false;
return Traits::EmptyExpression();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698