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

Unified Diff: src/parsing/parser.h

Issue 2351233002: [parser] Refactor of Parse*Statement*, part 8 (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | src/parsing/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index 5c12aeb8d0f7fc9f364e78a24a6ee22bb2ced0d8..a9e6986cf547ea9a12e5dbf6cf89f0a49b0e5255 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -401,10 +401,15 @@ class Parser : public ParserBase<Parser> {
Expression* iterable, Statement* body,
bool finalize,
int next_result_pos = kNoSourcePosition);
+ Block* RewriteForVarInLegacy(ForInfo* for_info);
+ std::pair<Block*, Expression*> DesugarBindingInForEachStatement(
+ ForInfo* for_info, bool* ok);
+ Block* CreateForEachStatementTDZ(Block* init_block, ForInfo* for_info,
+ bool* ok);
+
Statement* DesugarLexicalBindingsInForStatement(
- Scope* inner_scope, VariableMode mode,
- ZoneList<const AstRawString*>* names, ForStatement* loop, Statement* init,
- Expression* cond, Statement* next, Statement* body, bool* ok);
+ ForStatement* loop, Statement* init, Expression* cond, Statement* next,
+ Statement* body, Scope* inner_scope, ForInfo* for_info, bool* ok);
void DesugarAsyncFunctionBody(Scope* scope, ZoneList<Statement*>* body,
FunctionKind kind, FunctionBodyType type,
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | src/parsing/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698