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 #ifndef V8_PARSING_EXPRESSION_CLASSIFIER_H | 5 #ifndef V8_PARSING_EXPRESSION_CLASSIFIER_H |
6 #define V8_PARSING_EXPRESSION_CLASSIFIER_H | 6 #define V8_PARSING_EXPRESSION_CLASSIFIER_H |
7 | 7 |
8 #include "src/messages.h" | 8 #include "src/messages.h" |
9 #include "src/parsing/scanner.h" | 9 #include "src/parsing/scanner.h" |
10 #include "src/parsing/token.h" | 10 #include "src/parsing/token.h" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
| 15 class DuplicateFinder; |
| 16 |
15 #define ERROR_CODES(T) \ | 17 #define ERROR_CODES(T) \ |
16 T(ExpressionProduction, 0) \ | 18 T(ExpressionProduction, 0) \ |
17 T(FormalParameterInitializerProduction, 1) \ | 19 T(FormalParameterInitializerProduction, 1) \ |
18 T(BindingPatternProduction, 2) \ | 20 T(BindingPatternProduction, 2) \ |
19 T(AssignmentPatternProduction, 3) \ | 21 T(AssignmentPatternProduction, 3) \ |
20 T(DistinctFormalParametersProduction, 4) \ | 22 T(DistinctFormalParametersProduction, 4) \ |
21 T(StrictModeFormalParametersProduction, 5) \ | 23 T(StrictModeFormalParametersProduction, 5) \ |
22 T(ArrowFormalParametersProduction, 6) \ | 24 T(ArrowFormalParametersProduction, 6) \ |
23 T(LetPatternProduction, 7) \ | 25 T(LetPatternProduction, 7) \ |
24 T(ObjectLiteralProduction, 8) \ | 26 T(ObjectLiteralProduction, 8) \ |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 }; | 461 }; |
460 | 462 |
461 | 463 |
462 #undef ERROR_CODES | 464 #undef ERROR_CODES |
463 | 465 |
464 | 466 |
465 } // namespace internal | 467 } // namespace internal |
466 } // namespace v8 | 468 } // namespace v8 |
467 | 469 |
468 #endif // V8_PARSING_EXPRESSION_CLASSIFIER_H | 470 #endif // V8_PARSING_EXPRESSION_CLASSIFIER_H |
OLD | NEW |