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

Side by Side Diff: src/parser.h

Issue 952863006: Simplify error message logic in ParseImportNames (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | src/parser.cc » ('j') | src/parser.cc » ('J')
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_PARSER_H_ 5 #ifndef V8_PARSER_H_
6 #define V8_PARSER_H_ 6 #define V8_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/compiler.h" // For CachedDataMode 10 #include "src/compiler.h" // For CachedDataMode
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 void* ParseModule(ZoneList<Statement*>* body, bool* ok); 706 void* ParseModule(ZoneList<Statement*>* body, bool* ok);
707 Statement* ParseModuleItem(bool* ok); 707 Statement* ParseModuleItem(bool* ok);
708 Literal* ParseModuleSpecifier(bool* ok); 708 Literal* ParseModuleSpecifier(bool* ok);
709 Statement* ParseImportDeclaration(bool* ok); 709 Statement* ParseImportDeclaration(bool* ok);
710 Statement* ParseExportDeclaration(bool* ok); 710 Statement* ParseExportDeclaration(bool* ok);
711 Statement* ParseExportDefault(bool* ok); 711 Statement* ParseExportDefault(bool* ok);
712 void* ParseExportClause(ZoneList<const AstRawString*>* export_names, 712 void* ParseExportClause(ZoneList<const AstRawString*>* export_names,
713 ZoneList<Scanner::Location>* export_locations, 713 ZoneList<Scanner::Location>* export_locations,
714 ZoneList<const AstRawString*>* local_names, 714 ZoneList<const AstRawString*>* local_names,
715 Scanner::Location* reserved_loc, bool* ok); 715 Scanner::Location* reserved_loc, bool* ok);
716 void* ParseNamedImports(ZoneList<const AstRawString*>* names, bool* ok); 716 void* ParseNamedImports(ZoneList<const AstRawString*>* import_names,
717 ZoneList<const AstRawString*>* local_names, bool* ok);
717 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); 718 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok);
718 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, bool* ok); 719 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, bool* ok);
719 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, 720 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names,
720 bool* ok); 721 bool* ok);
721 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, 722 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names,
722 bool* ok); 723 bool* ok);
723 Statement* ParseNativeDeclaration(bool* ok); 724 Statement* ParseNativeDeclaration(bool* ok);
724 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); 725 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok);
725 Block* ParseVariableStatement(VariableDeclarationContext var_context, 726 Block* ParseVariableStatement(VariableDeclarationContext var_context,
726 ZoneList<const AstRawString*>* names, 727 ZoneList<const AstRawString*>* names,
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 } 946 }
946 947
947 948
948 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, 949 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state,
949 int start, Expression* tag) { 950 int start, Expression* tag) {
950 return parser_->CloseTemplateLiteral(state, start, tag); 951 return parser_->CloseTemplateLiteral(state, start, tag);
951 } 952 }
952 } } // namespace v8::internal 953 } } // namespace v8::internal
953 954
954 #endif // V8_PARSER_H_ 955 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698