OLD | NEW |
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_H_ | 5 #ifndef V8_PARSING_PARSER_H_ |
6 #define V8_PARSING_PARSER_H_ | 6 #define V8_PARSING_PARSER_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 ZoneList<Scanner::Location>* export_locations, | 737 ZoneList<Scanner::Location>* export_locations, |
738 ZoneList<const AstRawString*>* local_names, | 738 ZoneList<const AstRawString*>* local_names, |
739 Scanner::Location* reserved_loc, bool* ok); | 739 Scanner::Location* reserved_loc, bool* ok); |
740 ZoneList<ImportDeclaration*>* ParseNamedImports(int pos, bool* ok); | 740 ZoneList<ImportDeclaration*>* ParseNamedImports(int pos, bool* ok); |
741 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); | 741 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
742 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, bool* ok); | 742 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
743 Statement* ParseStatementAsUnlabelled(ZoneList<const AstRawString*>* labels, | 743 Statement* ParseStatementAsUnlabelled(ZoneList<const AstRawString*>* labels, |
744 bool* ok); | 744 bool* ok); |
745 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, | 745 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, |
746 bool* ok); | 746 bool* ok); |
| 747 Statement* ParseFunctionDeclaration(int pos, bool is_generator, |
| 748 ZoneList<const AstRawString*>* names, |
| 749 bool* ok); |
747 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, | 750 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, |
748 bool* ok); | 751 bool* ok); |
749 Statement* ParseNativeDeclaration(bool* ok); | 752 Statement* ParseNativeDeclaration(bool* ok); |
750 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); | 753 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); |
751 Block* ParseBlock(ZoneList<const AstRawString*>* labels, | 754 Block* ParseBlock(ZoneList<const AstRawString*>* labels, |
752 bool finalize_block_scope, bool* ok); | 755 bool finalize_block_scope, bool* ok); |
753 Block* ParseVariableStatement(VariableDeclarationContext var_context, | 756 Block* ParseVariableStatement(VariableDeclarationContext var_context, |
754 ZoneList<const AstRawString*>* names, | 757 ZoneList<const AstRawString*>* names, |
755 bool* ok); | 758 bool* ok); |
756 DoExpression* ParseDoExpression(bool* ok); | 759 DoExpression* ParseDoExpression(bool* ok); |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 | 1217 |
1215 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1218 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1216 return parser_->ParseDoExpression(ok); | 1219 return parser_->ParseDoExpression(ok); |
1217 } | 1220 } |
1218 | 1221 |
1219 | 1222 |
1220 } // namespace internal | 1223 } // namespace internal |
1221 } // namespace v8 | 1224 } // namespace v8 |
1222 | 1225 |
1223 #endif // V8_PARSING_PARSER_H_ | 1226 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |