Chromium Code Reviews| Index: src/parser.h |
| diff --git a/src/parser.h b/src/parser.h |
| index cda26df2803a1d6290bec2e279c3150ef84523bb..cbf6eaec6d44a65d2d5d5bba044a417f85978080 100644 |
| --- a/src/parser.h |
| +++ b/src/parser.h |
| @@ -749,9 +749,10 @@ class ParserTraits { |
| FunctionKind kind = kNormalFunction); |
| bool DeclareFormalParameter(Scope* scope, const AstRawString* name, |
| - bool is_rest) { |
| + bool is_rest, int pos) { |
| bool is_duplicate = false; |
| - Variable* var = scope->DeclareParameter(name, VAR, is_rest, &is_duplicate); |
| + Variable* var = |
| + scope->DeclareParameter(name, VAR, is_rest, &is_duplicate, pos); |
| if (is_sloppy(scope->language_mode())) { |
| // TODO(sigurds) Mark every parameter as maybe assigned. This is a |
| // conservative approximation necessary to account for parameters |
| @@ -1026,7 +1027,6 @@ class Parser : public ParserBase<ParserTraits> { |
| bool* ok_; |
| }; |
| - |
| void ParseVariableDeclarations(VariableDeclarationContext var_context, |
| DeclarationParsingResult* parsing_result, |
| bool* ok); |
| @@ -1072,6 +1072,10 @@ class Parser : public ParserBase<ParserTraits> { |
| ForStatement* loop, Statement* init, Expression* cond, Statement* next, |
| Statement* body, bool* ok); |
| + ZoneList<Statement*>* DesugarInitializeParameters( |
| + Scope* scope, bool hasParameterExpressions, |
|
adamk
2015/05/26 19:58:10
Style nit: has_parameter_expressions
|
| + ZoneList<Expression*>* initializers); |
| + |
| FunctionLiteral* ParseFunctionLiteral( |
| const AstRawString* name, Scanner::Location function_name_location, |
| bool name_is_strict_reserved, FunctionKind kind, |