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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 Statement* ParseHoistableDeclaration(int pos, ParseFunctionFlags flags, | 806 Statement* ParseHoistableDeclaration(int pos, ParseFunctionFlags flags, |
807 ZoneList<const AstRawString*>* names, | 807 ZoneList<const AstRawString*>* names, |
808 bool default_export, bool* ok); | 808 bool default_export, bool* ok); |
809 Statement* ParseAsyncFunctionDeclaration(ZoneList<const AstRawString*>* names, | 809 Statement* ParseAsyncFunctionDeclaration(ZoneList<const AstRawString*>* names, |
810 bool default_export, bool* ok); | 810 bool default_export, bool* ok); |
811 Expression* ParseAsyncFunctionExpression(bool* ok); | 811 Expression* ParseAsyncFunctionExpression(bool* ok); |
812 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, | 812 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, |
813 bool default_export, bool* ok); | 813 bool default_export, bool* ok); |
814 Statement* ParseNativeDeclaration(bool* ok); | 814 Statement* ParseNativeDeclaration(bool* ok); |
815 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); | 815 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); |
816 Block* ParseBlock(ZoneList<const AstRawString*>* labels, | |
817 bool finalize_block_scope, bool* ok); | |
818 Block* ParseVariableStatement(VariableDeclarationContext var_context, | 816 Block* ParseVariableStatement(VariableDeclarationContext var_context, |
819 ZoneList<const AstRawString*>* names, | 817 ZoneList<const AstRawString*>* names, |
820 bool* ok); | 818 bool* ok); |
821 DoExpression* ParseDoExpression(bool* ok); | 819 DoExpression* ParseDoExpression(bool* ok); |
822 Expression* ParseYieldStarExpression(bool* ok); | 820 Expression* ParseYieldStarExpression(bool* ok); |
823 | 821 |
824 struct DeclarationDescriptor { | 822 struct DeclarationDescriptor { |
825 enum Kind { NORMAL, PARAMETER }; | 823 enum Kind { NORMAL, PARAMETER }; |
826 Parser* parser; | 824 Parser* parser; |
827 Scope* scope; | 825 Scope* scope; |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 | 1323 |
1326 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1324 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
1327 return parser_->ParseDoExpression(ok); | 1325 return parser_->ParseDoExpression(ok); |
1328 } | 1326 } |
1329 | 1327 |
1330 | 1328 |
1331 } // namespace internal | 1329 } // namespace internal |
1332 } // namespace v8 | 1330 } // namespace v8 |
1333 | 1331 |
1334 #endif // V8_PARSING_PARSER_H_ | 1332 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |