Index: src/preparser.cc |
=================================================================== |
--- src/preparser.cc (revision 8352) |
+++ src/preparser.cc (working copy) |
@@ -383,7 +383,7 @@ |
Expect(i::Token::CONTINUE, CHECK_OK); |
i::Token::Value tok = peek(); |
- if (!scanner_->has_line_terminator_before_next() && |
+ if (!scanner_->HasAnyLineTerminatorBeforeNext() && |
tok != i::Token::SEMICOLON && |
tok != i::Token::RBRACE && |
tok != i::Token::EOS) { |
@@ -400,7 +400,7 @@ |
Expect(i::Token::BREAK, CHECK_OK); |
i::Token::Value tok = peek(); |
- if (!scanner_->has_line_terminator_before_next() && |
+ if (!scanner_->HasAnyLineTerminatorBeforeNext() && |
tok != i::Token::SEMICOLON && |
tok != i::Token::RBRACE && |
tok != i::Token::EOS) { |
@@ -426,7 +426,7 @@ |
// This is not handled during preparsing. |
i::Token::Value tok = peek(); |
- if (!scanner_->has_line_terminator_before_next() && |
+ if (!scanner_->HasAnyLineTerminatorBeforeNext() && |
tok != i::Token::SEMICOLON && |
tok != i::Token::RBRACE && |
tok != i::Token::EOS) { |
@@ -577,7 +577,7 @@ |
// 'throw' [no line terminator] Expression ';' |
Expect(i::Token::THROW, CHECK_OK); |
- if (scanner_->has_line_terminator_before_next()) { |
+ if (scanner_->HasAnyLineTerminatorBeforeNext()) { |
i::JavaScriptScanner::Location pos = scanner_->location(); |
ReportMessageAt(pos.beg_pos, pos.end_pos, |
"newline_after_throw", NULL); |
@@ -800,7 +800,7 @@ |
i::Scanner::Location before = scanner_->peek_location(); |
Expression expression = ParseLeftHandSideExpression(CHECK_OK); |
- if (!scanner_->has_line_terminator_before_next() && |
+ if (!scanner_->HasAnyLineTerminatorBeforeNext() && |
i::Token::IsCountOp(peek())) { |
if (strict_mode() && expression.IsIdentifier() && |
expression.AsIdentifier().IsEvalOrArguments()) { |
@@ -1274,7 +1274,7 @@ |
Next(); |
return; |
} |
- if (scanner_->has_line_terminator_before_next() || |
+ if (scanner_->HasAnyLineTerminatorBeforeNext() || |
tok == i::Token::RBRACE || |
tok == i::Token::EOS) { |
return; |