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

Unified Diff: src/parsing/parser.h

Issue 1643903003: [generators] Desugar yield*. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add CHECK to rewriter. Created 4 years, 11 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 | « src/messages.h ('k') | 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 c37953f04ad3c24480d8f57303e2ade4340ae02c..d66170dbce3b3f1b6d3642de8df6dfaf5c24a00d 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -658,8 +658,13 @@ class ParserTraits {
ObjectLiteralProperty* property, const ExpressionClassifier* classifier,
bool* ok);
+ Expression* RewriteYieldStar(
+ Expression* generator, Expression* expression, int pos);
+
private:
Parser* parser_;
+
+ void BuildIteratorClose(ZoneList<Statement*>* statements, Variable* iterator);
};
@@ -756,6 +761,7 @@ class Parser : public ParserBase<ParserTraits> {
ZoneList<const AstRawString*>* names,
bool* ok);
DoExpression* ParseDoExpression(bool* ok);
+ Expression* ParseYieldStarExpression(bool* ok);
struct DeclarationDescriptor {
enum Kind { NORMAL, PARAMETER };
« no previous file with comments | « src/messages.h ('k') | src/parsing/parser.cc » ('j') | src/parsing/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698