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

Unified Diff: src/parsing/preparser.h

Issue 1643903003: [generators] Desugar yield*. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Refer to ResumeMode Created 4 years, 10 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/parsing/parser-base.h ('k') | src/parsing/rewriter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index 976fa7cfe7dbaf39600f605e9b01d9f538082502..5d4df475d82ce5f5f162094192cf8c19d48e42ec 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -946,6 +946,9 @@ class PreParserTraits {
PreParserExpression property, const ExpressionClassifier* classifier,
bool* ok);
+ inline PreParserExpression RewriteYieldStar(
+ PreParserExpression generator, PreParserExpression expr, int pos);
+
private:
PreParser* pre_parser_;
};
@@ -1143,6 +1146,13 @@ PreParserExpression PreParserTraits::RewriteNonPatternObjectLiteralProperty(
}
+PreParserExpression PreParserTraits::RewriteYieldStar(
+ PreParserExpression generator, PreParserExpression expression, int pos) {
+ return pre_parser_->factory()->NewYield(
+ generator, expression, Yield::kDelegating, pos);
+}
+
+
PreParserStatementList PreParser::ParseEagerFunctionBody(
PreParserIdentifier function_name, int pos,
const PreParserFormalParameters& parameters, FunctionKind kind,
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/parsing/rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698