| 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 }; | 451 }; |
| 450 | 452 |
| 451 | 453 |
| 452 #undef ERROR_CODES | 454 #undef ERROR_CODES |
| 453 | 455 |
| 454 | 456 |
| 455 } // namespace internal | 457 } // namespace internal |
| 456 } // namespace v8 | 458 } // namespace v8 |
| 457 | 459 |
| 458 #endif // V8_PARSING_EXPRESSION_CLASSIFIER_H | 460 #endif // V8_PARSING_EXPRESSION_CLASSIFIER_H |
| OLD | NEW |