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

Unified Diff: src/parser.h

Issue 1178523002: Support rest parameters in arrow functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Fix error locations for param-after-rest errors Created 5 years, 6 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/parser.cc » ('j') | test/message/arrow-param-after-rest.out » ('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 d092403e7af1fb01e3298d6b53bcaa1c9b4090d9..a9834e25d767c654a191e2e5d5599e7e877d696a 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -757,13 +757,9 @@ class ParserTraits {
V8_INLINE void DeclareFormalParameter(Scope* scope, const AstRawString* name,
ExpressionClassifier* classifier,
bool is_rest);
- void DeclareArrowFunctionParameters(Scope* scope, Expression* expr,
- const Scanner::Location& params_loc,
- Scanner::Location* duplicate_loc,
- bool* ok);
void ParseArrowFunctionFormalParameters(Scope* scope, Expression* params,
const Scanner::Location& params_loc,
- bool* is_rest,
+ bool* has_rest,
Scanner::Location* duplicate_loc,
bool* ok);
« no previous file with comments | « no previous file | src/parser.cc » ('j') | test/message/arrow-param-after-rest.out » ('J')

Powered by Google App Engine
This is Rietveld 408576698