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