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 25 matching lines...) Expand all Loading... |
36 void AstLiteralReindexer::VisitBreakStatement(BreakStatement* node) {} | 36 void AstLiteralReindexer::VisitBreakStatement(BreakStatement* node) {} |
37 | 37 |
38 | 38 |
39 void AstLiteralReindexer::VisitDebuggerStatement(DebuggerStatement* node) {} | 39 void AstLiteralReindexer::VisitDebuggerStatement(DebuggerStatement* node) {} |
40 | 40 |
41 | 41 |
42 void AstLiteralReindexer::VisitNativeFunctionLiteral( | 42 void AstLiteralReindexer::VisitNativeFunctionLiteral( |
43 NativeFunctionLiteral* node) {} | 43 NativeFunctionLiteral* node) {} |
44 | 44 |
45 | 45 |
| 46 void AstLiteralReindexer::VisitDoExpression(DoExpression* node) { |
| 47 // TODO(caitp): literals in do expressions need re-indexing too. |
| 48 } |
| 49 |
| 50 |
46 void AstLiteralReindexer::VisitLiteral(Literal* node) {} | 51 void AstLiteralReindexer::VisitLiteral(Literal* node) {} |
47 | 52 |
48 | 53 |
49 void AstLiteralReindexer::VisitRegExpLiteral(RegExpLiteral* node) { | 54 void AstLiteralReindexer::VisitRegExpLiteral(RegExpLiteral* node) { |
50 UpdateIndex(node); | 55 UpdateIndex(node); |
51 } | 56 } |
52 | 57 |
53 | 58 |
54 void AstLiteralReindexer::VisitVariableProxy(VariableProxy* node) {} | 59 void AstLiteralReindexer::VisitVariableProxy(VariableProxy* node) {} |
55 | 60 |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) { | 316 void AstLiteralReindexer::VisitFunctionLiteral(FunctionLiteral* node) { |
312 // We don't recurse into the declarations or body of the function literal: | 317 // We don't recurse into the declarations or body of the function literal: |
313 } | 318 } |
314 | 319 |
315 | 320 |
316 void AstLiteralReindexer::Reindex(Expression* pattern) { | 321 void AstLiteralReindexer::Reindex(Expression* pattern) { |
317 pattern->Accept(this); | 322 pattern->Accept(this); |
318 } | 323 } |
319 } // namespace internal | 324 } // namespace internal |
320 } // namespace v8 | 325 } // namespace v8 |
OLD | NEW |