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

Unified Diff: src/parsing/parser.cc

Issue 1567603005: Set up rewriting triggers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Clean up and rename to RewriteNonPattern Created 4 years, 11 months 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 | « src/parsing/parser.h ('k') | src/parsing/parser-base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index 09c9be4b41c2903c1584b5f44bb975fad177d822..068b677094fdbac0b9f07c62119590d4ef240540 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -4750,7 +4750,7 @@ ClassLiteral* Parser::ParseClassLiteral(const AstRawString* name,
block_scope->set_start_position(scanner()->location().end_pos);
ExpressionClassifier classifier;
extends = ParseLeftHandSideExpression(&classifier, CHECK_OK);
- extends = ParserTraits::RewriteExpression(extends, &classifier, CHECK_OK);
+ extends = ParserTraits::RewriteNonPattern(extends, &classifier, CHECK_OK);
} else {
block_scope->set_start_position(scanner()->location().end_pos);
}
@@ -5392,9 +5392,9 @@ void ParserTraits::RewriteDestructuringAssignments() {
}
-Expression* ParserTraits::RewriteExpression(
+Expression* ParserTraits::RewriteNonPattern(
Expression* expr, const ExpressionClassifier* classifier, bool* ok) {
- return parser_->RewriteExpression(expr, classifier, ok);
+ return parser_->RewriteNonPattern(expr, classifier, ok);
}
@@ -5405,7 +5405,7 @@ ObjectLiteralProperty* ParserTraits::RewriteObjectLiteralProperty(
}
-Expression* Parser::RewriteExpression(Expression* expr,
+Expression* Parser::RewriteNonPattern(Expression* expr,
const ExpressionClassifier* classifier,
bool* ok) {
// For the time being, this does no rewriting at all.
@@ -5418,9 +5418,9 @@ ObjectLiteralProperty* Parser::RewriteObjectLiteralProperty(
ObjectLiteralProperty* property, const ExpressionClassifier* classifier,
bool* ok) {
if (property != nullptr) {
- Expression* key = RewriteExpression(property->key(), classifier, ok);
+ Expression* key = RewriteNonPattern(property->key(), classifier, ok);
property->set_key(key);
- Expression* value = RewriteExpression(property->value(), classifier, ok);
+ Expression* value = RewriteNonPattern(property->value(), classifier, ok);
property->set_value(value);
}
return property;
« no previous file with comments | « src/parsing/parser.h ('k') | src/parsing/parser-base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698