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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, | 775 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, |
776 AllowLabelledFunctionStatement allow_function, | 776 AllowLabelledFunctionStatement allow_function, |
777 bool* ok); | 777 bool* ok); |
778 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, | 778 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, |
779 AllowLabelledFunctionStatement allow_function, | 779 AllowLabelledFunctionStatement allow_function, |
780 bool* ok); | 780 bool* ok); |
781 Statement* ParseStatementAsUnlabelled(ZoneList<const AstRawString*>* labels, | 781 Statement* ParseStatementAsUnlabelled(ZoneList<const AstRawString*>* labels, |
782 bool* ok); | 782 bool* ok); |
783 Statement* ParseFunctionDeclaration(bool* ok); | 783 Statement* ParseFunctionDeclaration(bool* ok); |
784 Statement* ParseHoistableDeclaration(ZoneList<const AstRawString*>* names, | 784 Statement* ParseHoistableDeclaration(ZoneList<const AstRawString*>* names, |
785 bool* ok); | 785 bool default_export, bool* ok); |
786 Statement* ParseHoistableDeclaration(int pos, ParseFunctionFlags flags, | 786 Statement* ParseHoistableDeclaration(int pos, ParseFunctionFlags flags, |
787 ZoneList<const AstRawString*>* names, | 787 ZoneList<const AstRawString*>* names, |
788 bool* ok); | 788 bool default_export, bool* ok); |
789 Statement* ParseAsyncFunctionDeclaration(ZoneList<const AstRawString*>* names, | 789 Statement* ParseAsyncFunctionDeclaration(ZoneList<const AstRawString*>* names, |
790 bool* ok); | 790 bool default_export, bool* ok); |
791 Expression* ParseAsyncFunctionExpression(bool* ok); | 791 Expression* ParseAsyncFunctionExpression(bool* ok); |
792 Statement* ParseFunctionDeclaration(int pos, bool is_generator, | |
793 ZoneList<const AstRawString*>* names, | |
794 bool* ok); | |
795 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, | 792 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, |
796 bool* ok); | 793 bool default_export, bool* ok); |
797 Statement* ParseNativeDeclaration(bool* ok); | 794 Statement* ParseNativeDeclaration(bool* ok); |
798 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); | 795 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); |
799 Block* ParseBlock(ZoneList<const AstRawString*>* labels, | 796 Block* ParseBlock(ZoneList<const AstRawString*>* labels, |
800 bool finalize_block_scope, bool* ok); | 797 bool finalize_block_scope, bool* ok); |
801 Block* ParseVariableStatement(VariableDeclarationContext var_context, | 798 Block* ParseVariableStatement(VariableDeclarationContext var_context, |
802 ZoneList<const AstRawString*>* names, | 799 ZoneList<const AstRawString*>* names, |
803 bool* ok); | 800 bool* ok); |
804 DoExpression* ParseDoExpression(bool* ok); | 801 DoExpression* ParseDoExpression(bool* ok); |
805 Expression* ParseYieldStarExpression(bool* ok); | 802 Expression* ParseYieldStarExpression(bool* ok); |
806 | 803 |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1297 | 1294 |
1298 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1295 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1299 return parser_->ParseDoExpression(ok); | 1296 return parser_->ParseDoExpression(ok); |
1300 } | 1297 } |
1301 | 1298 |
1302 | 1299 |
1303 } // namespace internal | 1300 } // namespace internal |
1304 } // namespace v8 | 1301 } // namespace v8 |
1305 | 1302 |
1306 #endif // V8_PARSING_PARSER_H_ | 1303 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |