Commit 30b4b82b authored by adamk's avatar adamk Committed by Commit bot

Remove unused function_name param from DesugarAsyncFunctionBody

R=littledan@chromium.org

Review-Url: https://codereview.chromium.org/2302183002
Cr-Commit-Position: refs/heads/master@{#39227}
parent 81b7e77f
...@@ -3239,8 +3239,7 @@ void Parser::ParseArrowFunctionFormalParameters( ...@@ -3239,8 +3239,7 @@ void Parser::ParseArrowFunctionFormalParameters(
AddFormalParameter(parameters, expr, initializer, end_pos, is_rest); AddFormalParameter(parameters, expr, initializer, end_pos, is_rest);
} }
void Parser::DesugarAsyncFunctionBody(const AstRawString* function_name, void Parser::DesugarAsyncFunctionBody(Scope* scope, ZoneList<Statement*>* body,
Scope* scope, ZoneList<Statement*>* body,
FunctionKind kind, FunctionKind kind,
FunctionBodyType body_type, FunctionBodyType body_type,
bool accept_IN, int pos, bool* ok) { bool accept_IN, int pos, bool* ok) {
...@@ -4083,7 +4082,7 @@ ZoneList<Statement*>* Parser::ParseEagerFunctionBody( ...@@ -4083,7 +4082,7 @@ ZoneList<Statement*>* Parser::ParseEagerFunctionBody(
zone()); zone());
} else if (IsAsyncFunction(kind)) { } else if (IsAsyncFunction(kind)) {
const bool accept_IN = true; const bool accept_IN = true;
DesugarAsyncFunctionBody(function_name, inner_scope, body, kind, DesugarAsyncFunctionBody(inner_scope, body, kind,
FunctionBodyType::kNormal, accept_IN, pos, FunctionBodyType::kNormal, accept_IN, pos,
CHECK_OK); CHECK_OK);
} else { } else {
......
...@@ -426,8 +426,7 @@ class Parser : public ParserBase<Parser> { ...@@ -426,8 +426,7 @@ class Parser : public ParserBase<Parser> {
ZoneList<const AstRawString*>* names, ForStatement* loop, Statement* init, ZoneList<const AstRawString*>* names, ForStatement* loop, Statement* init,
Expression* cond, Statement* next, Statement* body, bool* ok); Expression* cond, Statement* next, Statement* body, bool* ok);
void DesugarAsyncFunctionBody(const AstRawString* function_name, Scope* scope, void DesugarAsyncFunctionBody(Scope* scope, ZoneList<Statement*>* body,
ZoneList<Statement*>* body,
FunctionKind kind, FunctionBodyType type, FunctionKind kind, FunctionBodyType type,
bool accept_IN, int pos, bool* ok); bool accept_IN, int pos, bool* ok);
...@@ -560,9 +559,9 @@ class Parser : public ParserBase<Parser> { ...@@ -560,9 +559,9 @@ class Parser : public ParserBase<Parser> {
void ParseAsyncArrowSingleExpressionBody(ZoneList<Statement*>* body, void ParseAsyncArrowSingleExpressionBody(ZoneList<Statement*>* body,
bool accept_IN, bool accept_IN,
int pos, bool* ok) { int pos, bool* ok) {
DesugarAsyncFunctionBody( DesugarAsyncFunctionBody(scope(), body, kAsyncArrowFunction,
ast_value_factory()->empty_string(), scope(), body, kAsyncArrowFunction, FunctionBodyType::kSingleExpression, accept_IN,
FunctionBodyType::kSingleExpression, accept_IN, pos, ok); pos, ok);
} }
ZoneList<Expression*>* PrepareSpreadArguments(ZoneList<Expression*>* list); ZoneList<Expression*>* PrepareSpreadArguments(ZoneList<Expression*>* list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment