| 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/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/parsing/parser-base.h" | 10 #include "src/parsing/parser-base.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 bool default_export, bool* ok); | 270 bool default_export, bool* ok); |
| 271 Statement* ParseHoistableDeclaration(int pos, ParseFunctionFlags flags, | 271 Statement* ParseHoistableDeclaration(int pos, ParseFunctionFlags flags, |
| 272 ZoneList<const AstRawString*>* names, | 272 ZoneList<const AstRawString*>* names, |
| 273 bool default_export, bool* ok); | 273 bool default_export, bool* ok); |
| 274 Statement* ParseAsyncFunctionDeclaration(ZoneList<const AstRawString*>* names, | 274 Statement* ParseAsyncFunctionDeclaration(ZoneList<const AstRawString*>* names, |
| 275 bool default_export, bool* ok); | 275 bool default_export, bool* ok); |
| 276 Expression* ParseAsyncFunctionExpression(bool* ok); | 276 Expression* ParseAsyncFunctionExpression(bool* ok); |
| 277 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, | 277 Statement* ParseClassDeclaration(ZoneList<const AstRawString*>* names, |
| 278 bool default_export, bool* ok); | 278 bool default_export, bool* ok); |
| 279 Statement* ParseNativeDeclaration(bool* ok); | 279 Statement* ParseNativeDeclaration(bool* ok); |
| 280 Block* ParseBlock(ZoneList<const AstRawString*>* labels, bool* ok); | |
| 281 Block* BuildInitializationBlock(DeclarationParsingResult* parsing_result, | 280 Block* BuildInitializationBlock(DeclarationParsingResult* parsing_result, |
| 282 ZoneList<const AstRawString*>* names, | 281 ZoneList<const AstRawString*>* names, |
| 283 bool* ok); | 282 bool* ok); |
| 284 void DeclareAndInitializeVariables( | 283 void DeclareAndInitializeVariables( |
| 285 Block* block, const DeclarationDescriptor* declaration_descriptor, | 284 Block* block, const DeclarationDescriptor* declaration_descriptor, |
| 286 const DeclarationParsingResult::Declaration* declaration, | 285 const DeclarationParsingResult::Declaration* declaration, |
| 287 ZoneList<const AstRawString*>* names, bool* ok); | 286 ZoneList<const AstRawString*>* names, bool* ok); |
| 288 | 287 |
| 289 Block* ParseVariableStatement(VariableDeclarationContext var_context, | 288 Block* ParseVariableStatement(VariableDeclarationContext var_context, |
| 290 ZoneList<const AstRawString*>* names, | 289 ZoneList<const AstRawString*>* names, |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 | 1049 |
| 1051 #ifdef DEBUG | 1050 #ifdef DEBUG |
| 1052 void Print(AstNode* node); | 1051 void Print(AstNode* node); |
| 1053 #endif // DEBUG | 1052 #endif // DEBUG |
| 1054 }; | 1053 }; |
| 1055 | 1054 |
| 1056 } // namespace internal | 1055 } // namespace internal |
| 1057 } // namespace v8 | 1056 } // namespace v8 |
| 1058 | 1057 |
| 1059 #endif // V8_PARSING_PARSER_H_ | 1058 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |