Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 94f42797740cd27bc31726dd03341fee360a305d..5537e576dab87b8a63cf63e77cedecd32e799510 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -931,10 +931,10 @@ class PreParserTraits { |
static void CheckPossibleEvalCall(PreParserExpression expression, |
PreParserScope* scope) {} |
- static PreParserExpression MarkExpressionAsLValue( |
+ static PreParserExpression MarkExpressionAsAssigned( |
PreParserExpression expression) { |
// TODO(marja): To be able to produce the same errors, the preparser needs |
- // to start tracking which expressions are variables and which are lvalues. |
+ // to start tracking which expressions are variables and which are assigned. |
return expression; |
} |
@@ -1711,7 +1711,7 @@ ParserBase<Traits>::ParseAssignmentExpression(bool accept_IN, bool* ok) { |
expression = this->CheckAndRewriteReferenceExpression( |
expression, lhs_location, "invalid_lhs_in_assignment", CHECK_OK); |
- expression = this->MarkExpressionAsLValue(expression); |
+ expression = this->MarkExpressionAsAssigned(expression); |
Token::Value op = Next(); // Get assignment operator. |
int pos = position(); |
@@ -1873,7 +1873,7 @@ ParserBase<Traits>::ParseUnaryExpression(bool* ok) { |
ExpressionT expression = this->ParseUnaryExpression(CHECK_OK); |
expression = this->CheckAndRewriteReferenceExpression( |
expression, lhs_location, "invalid_lhs_in_prefix_op", CHECK_OK); |
- this->MarkExpressionAsLValue(expression); |
+ this->MarkExpressionAsAssigned(expression); |
return factory()->NewCountOperation(op, |
true /* prefix */, |
@@ -1898,7 +1898,7 @@ ParserBase<Traits>::ParsePostfixExpression(bool* ok) { |
Token::IsCountOp(peek())) { |
expression = this->CheckAndRewriteReferenceExpression( |
expression, lhs_location, "invalid_lhs_in_postfix_op", CHECK_OK); |
- expression = this->MarkExpressionAsLValue(expression); |
+ expression = this->MarkExpressionAsAssigned(expression); |
Token::Value next = Next(); |
expression = |