Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: src/scanner.h

Issue 1213813003: [es6] Remove harmony-classes flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove empty flags field from json Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/preparser.h ('k') | src/scanner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 // characters, but works for seeking forward until simple delimiter 476 // characters, but works for seeking forward until simple delimiter
477 // tokens, which is what it is used for. 477 // tokens, which is what it is used for.
478 void SeekForward(int pos); 478 void SeekForward(int pos);
479 479
480 bool HarmonyModules() const { 480 bool HarmonyModules() const {
481 return harmony_modules_; 481 return harmony_modules_;
482 } 482 }
483 void SetHarmonyModules(bool modules) { 483 void SetHarmonyModules(bool modules) {
484 harmony_modules_ = modules; 484 harmony_modules_ = modules;
485 } 485 }
486 bool HarmonyClasses() const { 486
487 return harmony_classes_;
488 }
489 void SetHarmonyClasses(bool classes) {
490 harmony_classes_ = classes;
491 }
492 bool HarmonyUnicode() const { return harmony_unicode_; } 487 bool HarmonyUnicode() const { return harmony_unicode_; }
493 void SetHarmonyUnicode(bool unicode) { harmony_unicode_ = unicode; } 488 void SetHarmonyUnicode(bool unicode) { harmony_unicode_ = unicode; }
494 489
495 // Returns true if there was a line terminator before the peek'ed token, 490 // Returns true if there was a line terminator before the peek'ed token,
496 // possibly inside a multi-line comment. 491 // possibly inside a multi-line comment.
497 bool HasAnyLineTerminatorBeforeNext() const { 492 bool HasAnyLineTerminatorBeforeNext() const {
498 return has_line_terminator_before_next_ || 493 return has_line_terminator_before_next_ ||
499 has_multiline_comment_before_next_; 494 has_multiline_comment_before_next_;
500 } 495 }
501 496
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 791
797 // Whether there is a line terminator whitespace character after 792 // Whether there is a line terminator whitespace character after
798 // the current token, and before the next. Does not count newlines 793 // the current token, and before the next. Does not count newlines
799 // inside multiline comments. 794 // inside multiline comments.
800 bool has_line_terminator_before_next_; 795 bool has_line_terminator_before_next_;
801 // Whether there is a multi-line comment that contains a 796 // Whether there is a multi-line comment that contains a
802 // line-terminator after the current token, and before the next. 797 // line-terminator after the current token, and before the next.
803 bool has_multiline_comment_before_next_; 798 bool has_multiline_comment_before_next_;
804 // Whether we scan 'module', 'import', 'export' as keywords. 799 // Whether we scan 'module', 'import', 'export' as keywords.
805 bool harmony_modules_; 800 bool harmony_modules_;
806 // Whether we scan 'class', 'extends', 'static' and 'super' as keywords.
807 bool harmony_classes_;
808 // Whether we allow \u{xxxxx}. 801 // Whether we allow \u{xxxxx}.
809 bool harmony_unicode_; 802 bool harmony_unicode_;
810 }; 803 };
811 804
812 } } // namespace v8::internal 805 } } // namespace v8::internal
813 806
814 #endif // V8_SCANNER_H_ 807 #endif // V8_SCANNER_H_
OLDNEW
« no previous file with comments | « src/preparser.h ('k') | src/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698