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

Side by Side Diff: src/parsing/parser-base.h

Issue 2688413009: Remove dead ExpressionUnexpectedToken from parser-base.h (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_PARSING_PARSER_BASE_H 5 #ifndef V8_PARSING_PARSER_BASE_H
6 #define V8_PARSING_PARSER_BASE_H 6 #define V8_PARSING_PARSER_BASE_H
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 } 1046 }
1047 } 1047 }
1048 1048
1049 void ValidateLetPattern(bool* ok) { 1049 void ValidateLetPattern(bool* ok) {
1050 if (!classifier()->is_valid_let_pattern()) { 1050 if (!classifier()->is_valid_let_pattern()) {
1051 ReportClassifierError(classifier()->let_pattern_error()); 1051 ReportClassifierError(classifier()->let_pattern_error());
1052 *ok = false; 1052 *ok = false;
1053 } 1053 }
1054 } 1054 }
1055 1055
1056 void ExpressionUnexpectedToken() {
1057 MessageTemplate::Template message = MessageTemplate::kUnexpectedToken;
1058 const char* arg;
1059 Scanner::Location location = scanner()->peek_location();
1060 GetUnexpectedTokenMessage(peek(), &message, &location, &arg);
1061 classifier()->RecordExpressionError(location, message, arg);
1062 }
1063
1064 void BindingPatternUnexpectedToken() { 1056 void BindingPatternUnexpectedToken() {
1065 MessageTemplate::Template message = MessageTemplate::kUnexpectedToken; 1057 MessageTemplate::Template message = MessageTemplate::kUnexpectedToken;
1066 const char* arg; 1058 const char* arg;
1067 Scanner::Location location = scanner()->peek_location(); 1059 Scanner::Location location = scanner()->peek_location();
1068 GetUnexpectedTokenMessage(peek(), &message, &location, &arg); 1060 GetUnexpectedTokenMessage(peek(), &message, &location, &arg);
1069 classifier()->RecordBindingPatternError(location, message, arg); 1061 classifier()->RecordBindingPatternError(location, message, arg);
1070 } 1062 }
1071 1063
1072 void ArrowFormalParametersUnexpectedToken() { 1064 void ArrowFormalParametersUnexpectedToken() {
1073 MessageTemplate::Template message = MessageTemplate::kUnexpectedToken; 1065 MessageTemplate::Template message = MessageTemplate::kUnexpectedToken;
(...skipping 4683 matching lines...) Expand 10 before | Expand all | Expand 10 after
5757 } 5749 }
5758 5750
5759 #undef CHECK_OK 5751 #undef CHECK_OK
5760 #undef CHECK_OK_CUSTOM 5752 #undef CHECK_OK_CUSTOM
5761 #undef CHECK_OK_VOID 5753 #undef CHECK_OK_VOID
5762 5754
5763 } // namespace internal 5755 } // namespace internal
5764 } // namespace v8 5756 } // namespace v8
5765 5757
5766 #endif // V8_PARSING_PARSER_BASE_H 5758 #endif // V8_PARSING_PARSER_BASE_H
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698