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

Unified Diff: src/ast-expression-visitor.cc

Issue 1309813007: [es6] implement destructuring assignment (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: An implementation Created 5 years, 1 month 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
Index: src/ast-expression-visitor.cc
diff --git a/src/ast-expression-visitor.cc b/src/ast-expression-visitor.cc
index e38b444699bb01af8a9079a60767f40f8efe604d..02d719abbba1de88dd57e561e1dd1e19e7ecd424 100644
--- a/src/ast-expression-visitor.cc
+++ b/src/ast-expression-visitor.cc
@@ -230,6 +230,12 @@ void AstExpressionVisitor::VisitRegExpLiteral(RegExpLiteral* expr) {
}
+void AstExpressionVisitor::VisitAssignmentPattern(AssignmentPattern* expr) {
+ VisitExpression(expr);
+ RECURSE_EXPRESSION(Visit(expr->expression()));
adamk 2015/11/20 22:42:58 For each visitor, how did you decide whether to vi
+}
+
+
void AstExpressionVisitor::VisitObjectLiteral(ObjectLiteral* expr) {
VisitExpression(expr);
ZoneList<ObjectLiteralProperty*>* props = expr->properties();
« no previous file with comments | « src/ast.h ('k') | src/ast-literal-reindexer.cc » ('j') | src/crankshaft/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698