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 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 Scanner::Location* reserved_loc, bool* ok); | 754 Scanner::Location* reserved_loc, bool* ok); |
755 ZoneList<ImportDeclaration*>* ParseNamedImports(int pos, bool* ok); | 755 ZoneList<ImportDeclaration*>* ParseNamedImports(int pos, bool* ok); |
756 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, | 756 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, |
757 AllowLabelledFunctionStatement allow_function, | 757 AllowLabelledFunctionStatement allow_function, |
758 bool* ok); | 758 bool* ok); |
759 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, | 759 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, |
760 AllowLabelledFunctionStatement allow_function, | 760 AllowLabelledFunctionStatement allow_function, |
761 bool* ok); | 761 bool* ok); |
762 Statement* ParseStatementAsUnlabelled(ZoneList<const AstRawString*>* labels, | 762 Statement* ParseStatementAsUnlabelled(ZoneList<const AstRawString*>* labels, |
763 bool* ok); | 763 bool* ok); |
764 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, | 764 Statement* ParseFunctionDeclaration(bool* ok); |
| 765 Statement* ParseHoistableDeclaration(ZoneList<const AstRawString*>* names, |
765 bool* ok); | 766 bool* ok); |
766 Statement* ParseFunctionDeclaration(int pos, bool is_generator, | 767 Statement* ParseHoistableDeclaration(int pos, bool is_generator, |
767 ZoneList<const AstRawString*>* names, | 768 ZoneList<const AstRawString*>* names, |
768 bool* ok); | 769 bool* ok); |
769 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, | 770 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, |
770 bool* ok); | 771 bool* ok); |
771 Statement* ParseNativeDeclaration(bool* ok); | 772 Statement* ParseNativeDeclaration(bool* ok); |
772 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); | 773 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); |
773 Block* ParseBlock(ZoneList<const AstRawString*>* labels, | 774 Block* ParseBlock(ZoneList<const AstRawString*>* labels, |
774 bool finalize_block_scope, bool* ok); | 775 bool finalize_block_scope, bool* ok); |
775 Block* ParseVariableStatement(VariableDeclarationContext var_context, | 776 Block* ParseVariableStatement(VariableDeclarationContext var_context, |
776 ZoneList<const AstRawString*>* names, | 777 ZoneList<const AstRawString*>* names, |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 | 1248 |
1248 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1249 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1249 return parser_->ParseDoExpression(ok); | 1250 return parser_->ParseDoExpression(ok); |
1250 } | 1251 } |
1251 | 1252 |
1252 | 1253 |
1253 } // namespace internal | 1254 } // namespace internal |
1254 } // namespace v8 | 1255 } // namespace v8 |
1255 | 1256 |
1256 #endif // V8_PARSING_PARSER_H_ | 1257 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |