Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: src/parsing/parser.h

Issue 2312263002: [parser] Refactor of Parse*Statement*, part 2 (Closed)
Patch Set: The real patch Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698