OLD | NEW |
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...) Loading... |
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...) Loading... |
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 |
OLD | NEW |