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

Side by Side Diff: src/ast-literal-reindexer.cc

Issue 1286383005: Parse arrow functions at proper precedence level (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Fix nits Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « src/ast.h ('k') | src/ast-numbering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/ast-literal-reindexer.h" 5 #include "src/ast-literal-reindexer.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/scopes.h" 8 #include "src/scopes.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 Visit(node->left()); 167 Visit(node->left());
168 Visit(node->right()); 168 Visit(node->right());
169 } 169 }
170 170
171 171
172 void AstLiteralReindexer::VisitSpread(Spread* node) { 172 void AstLiteralReindexer::VisitSpread(Spread* node) {
173 Visit(node->expression()); 173 Visit(node->expression());
174 } 174 }
175 175
176 176
177 void AstLiteralReindexer::VisitEmptyParentheses(EmptyParentheses* node) {}
178
179
177 void AstLiteralReindexer::VisitForInStatement(ForInStatement* node) { 180 void AstLiteralReindexer::VisitForInStatement(ForInStatement* node) {
178 Visit(node->each()); 181 Visit(node->each());
179 Visit(node->enumerable()); 182 Visit(node->enumerable());
180 Visit(node->body()); 183 Visit(node->body());
181 } 184 }
182 185
183 186
184 void AstLiteralReindexer::VisitForOfStatement(ForOfStatement* node) { 187 void AstLiteralReindexer::VisitForOfStatement(ForOfStatement* node) {
185 Visit(node->assign_iterator()); 188 Visit(node->assign_iterator());
186 Visit(node->next_result()); 189 Visit(node->next_result());
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) { 305 void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) {
303 // We don't recurse into the declarations or body of the function literal: 306 // We don't recurse into the declarations or body of the function literal:
304 } 307 }
305 308
306 309
307 void AstLiteralReindexer::Reindex(Expression* pattern) { 310 void AstLiteralReindexer::Reindex(Expression* pattern) {
308 pattern->Accept(this); 311 pattern->Accept(this);
309 } 312 }
310 } 313 }
311 } // namespace v8::internal 314 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/ast-numbering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698