Index: src/scanner.h |
diff --git a/src/scanner.h b/src/scanner.h |
index d3a6c6b22eebf1327993388bcb0279acf7eab72d..165bc22ca790abaa5fe6ffacca6a48fab09e0221 100644 |
--- a/src/scanner.h |
+++ b/src/scanner.h |
@@ -438,6 +438,12 @@ class Scanner { |
void SetHarmonyNumericLiterals(bool numeric_literals) { |
harmony_numeric_literals_ = numeric_literals; |
} |
+ bool HarmonyClasses() const { |
+ return harmony_classes_; |
+ } |
+ void SetHarmonyClasses(bool classes) { |
+ harmony_classes_ = classes; |
+ } |
// Returns true if there was a line terminator before the peek'ed token, |
// possibly inside a multi-line comment. |
@@ -647,6 +653,8 @@ class Scanner { |
bool harmony_modules_; |
// Whether we scan 0o777 and 0b111 as numbers. |
bool harmony_numeric_literals_; |
+ // Whether we scan 'super' and 'class' as keywords. |
arv (Not doing code reviews)
2014/08/15 19:41:07
and eventually 'static'. I'll try to not forget to
Dmitry Lomov (no reviews)
2014/08/15 22:11:41
Updated comment to reflect reality of this patch.
|
+ bool harmony_classes_; |
}; |
} } // namespace v8::internal |