OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 // Features shared by parsing and pre-parsing scanners. | 5 // Features shared by parsing and pre-parsing scanners. |
6 | 6 |
7 #ifndef V8_SCANNER_H_ | 7 #ifndef V8_SCANNER_H_ |
8 #define V8_SCANNER_H_ | 8 #define V8_SCANNER_H_ |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 bool has_line_terminator_before_next_; | 646 bool has_line_terminator_before_next_; |
647 // Whether there is a multi-line comment that contains a | 647 // Whether there is a multi-line comment that contains a |
648 // line-terminator after the current token, and before the next. | 648 // line-terminator after the current token, and before the next. |
649 bool has_multiline_comment_before_next_; | 649 bool has_multiline_comment_before_next_; |
650 // Whether we scan 'let' as a keyword for harmony block-scoped let bindings. | 650 // Whether we scan 'let' as a keyword for harmony block-scoped let bindings. |
651 bool harmony_scoping_; | 651 bool harmony_scoping_; |
652 // Whether we scan 'module', 'import', 'export' as keywords. | 652 // Whether we scan 'module', 'import', 'export' as keywords. |
653 bool harmony_modules_; | 653 bool harmony_modules_; |
654 // Whether we scan 0o777 and 0b111 as numbers. | 654 // Whether we scan 0o777 and 0b111 as numbers. |
655 bool harmony_numeric_literals_; | 655 bool harmony_numeric_literals_; |
656 // Whether we scan 'super' as keyword. | 656 // Whether we scan 'class', 'extends', 'static' and 'super' as keywords. |
657 bool harmony_classes_; | 657 bool harmony_classes_; |
658 }; | 658 }; |
659 | 659 |
660 } } // namespace v8::internal | 660 } } // namespace v8::internal |
661 | 661 |
662 #endif // V8_SCANNER_H_ | 662 #endif // V8_SCANNER_H_ |
OLD | NEW |