Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index 76fbac2a5643ada4b9a92b5b220843802d02eac4..c8c5835295eeb99c5df4600992958fcac2f50682 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -696,7 +696,6 @@ class ParserTraits { |
static Expression* EmptyExpression() { |
return NULL; |
} |
- static Expression* EmptyArrowParamList() { return NULL; } |
static Literal* EmptyLiteral() { |
return NULL; |
} |
@@ -753,10 +752,13 @@ class ParserTraits { |
V8_INLINE Scope* NewScope(Scope* parent_scope, ScopeType scope_type, |
FunctionKind kind = kNormalFunction); |
- // Utility functions |
- int DeclareArrowParametersFromExpression(Expression* expression, Scope* scope, |
- FormalParameterErrorLocations* locs, |
- bool* ok); |
+ void RecordArrowFunctionParameter(ZoneList<const AstRawString*>* params, |
+ VariableProxy* proxy, |
+ FormalParameterErrorLocations* error_locs, |
+ bool* ok); |
+ ZoneList<const AstRawString*>* ParseArrowFunctionFormalParameterList( |
+ Expression* params, const Scanner::Location& params_loc, |
+ FormalParameterErrorLocations* error_locs, bool* is_rest, bool* ok); |
// Temporary glue; these functions will move to ParserBase. |
Expression* ParseV8Intrinsic(bool* ok); |
@@ -777,6 +779,9 @@ class ParserTraits { |
bool name_is_strict_reserved, int pos, |
bool* ok); |
+ int DeclareFormalParameters(ZoneList<const AstRawString*>* params, |
+ Scope* scope, bool has_rest); |
+ |
V8_INLINE void CheckConflictingVarDeclarations(v8::internal::Scope* scope, |
bool* ok); |
@@ -1053,8 +1058,6 @@ class Parser : public ParserBase<ParserTraits> { |
ScriptCompiler::CompileOptions compile_options_; |
ParseData* cached_parse_data_; |
- bool parsing_lazy_arrow_parameters_; // for lazily parsed arrow functions. |
- |
PendingCompilationErrorHandler pending_error_handler_; |
// Other information which will be stored in Parser and moved to Isolate after |