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

Unified Diff: src/parser.h

Issue 997823003: [es6] support rest parameters in arrow functions (alternative) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/hydrogen.cc ('k') | src/parser.cc » ('j') | src/preparser.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index 078383b391284425bd14dd37a0d8dee5fe879267..c70e927a1156da2d40157fd1f24c1dba581694ce 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -817,6 +817,10 @@ class ParserTraits {
return tag != NULL;
}
+ Expression* SpreadExpression(Expression* node) {
+ return node->AsSpread()->expression();
+ }
+
private:
Parser* parser_;
};
« no previous file with comments | « src/hydrogen.cc ('k') | src/parser.cc » ('j') | src/preparser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698