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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); | 728 Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
729 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, bool* ok); | 729 Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
730 Statement* ParseStatementAsUnlabelled(ZoneList<const AstRawString*>* labels, | 730 Statement* ParseStatementAsUnlabelled(ZoneList<const AstRawString*>* labels, |
731 bool* ok); | 731 bool* ok); |
732 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, | 732 Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, |
733 bool* ok); | 733 bool* ok); |
734 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, | 734 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, |
735 bool* ok); | 735 bool* ok); |
736 Statement* ParseNativeDeclaration(bool* ok); | 736 Statement* ParseNativeDeclaration(bool* ok); |
737 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); | 737 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); |
| 738 Block* ParseBlock(ZoneList<const AstRawString*>* labels, |
| 739 bool finalize_block_scope, bool* ok); |
738 Block* ParseVariableStatement(VariableDeclarationContext var_context, | 740 Block* ParseVariableStatement(VariableDeclarationContext var_context, |
739 ZoneList<const AstRawString*>* names, | 741 ZoneList<const AstRawString*>* names, |
740 bool* ok); | 742 bool* ok); |
741 DoExpression* ParseDoExpression(bool* ok); | 743 DoExpression* ParseDoExpression(bool* ok); |
742 | 744 |
743 struct DeclarationDescriptor { | 745 struct DeclarationDescriptor { |
744 enum Kind { NORMAL, PARAMETER }; | 746 enum Kind { NORMAL, PARAMETER }; |
745 Parser* parser; | 747 Parser* parser; |
746 Scope* scope; | 748 Scope* scope; |
747 Scope* hoist_scope; | 749 Scope* hoist_scope; |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1187 | 1189 |
1188 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1190 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1189 return parser_->ParseDoExpression(ok); | 1191 return parser_->ParseDoExpression(ok); |
1190 } | 1192 } |
1191 | 1193 |
1192 | 1194 |
1193 } // namespace internal | 1195 } // namespace internal |
1194 } // namespace v8 | 1196 } // namespace v8 |
1195 | 1197 |
1196 #endif // V8_PARSING_PARSER_H_ | 1198 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |