Index: src/parsing/scanner.h |
diff --git a/src/parsing/scanner.h b/src/parsing/scanner.h |
index b4c6b62d1488f5654869ca4e9bfedd2c03f79f1f..4e07810dbdb26d01827e7da37276aa4ef3e0cbe8 100644 |
--- a/src/parsing/scanner.h |
+++ b/src/parsing/scanner.h |
@@ -442,6 +442,12 @@ class Scanner { |
has_multiline_comment_before_next_; |
} |
+ bool HasAnyLineTerminatorAfterNext() { |
+ Token::Value ensure_next_next = PeekAhead(); |
+ USE(ensure_next_next); |
+ return has_line_terminator_after_next_; |
+ } |
+ |
// Scans the input as a regular expression pattern, previous |
// character(s) must be /(=). Returns true if a pattern is scanned. |
bool ScanRegExpPattern(bool seen_equal); |
@@ -786,6 +792,7 @@ class Scanner { |
// Whether there is a multi-line comment that contains a |
// line-terminator after the current token, and before the next. |
bool has_multiline_comment_before_next_; |
+ bool has_line_terminator_after_next_; |
// Whether this scanner encountered an HTML comment. |
bool found_html_comment_; |