Move part of Parser::functionDefinition into callers.

This commit is contained in:
wolfbeast 2019-04-06 04:22:27 +02:00 • committed by Roy Tam
commit 5cb16b488f
2 changed files with 31 additions and 20 deletions

View file

@ -1259,11 +1259,10 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
bool functionArguments(YieldHandling yieldHandling, FunctionSyntaxKind kind,
Node funcpn);
Node functionDefinition(uint32_t preludeStart,
Node functionDefinition(uint32_t preludeStart, Node pn,
InHandling inHandling, YieldHandling yieldHandling, HandleAtom name,
FunctionSyntaxKind kind,
GeneratorKind generatorKind, FunctionAsyncKind asyncKind,
InvokedPrediction invoked = PredictUninvoked);
GeneratorKind generatorKind, FunctionAsyncKind asyncKind);
// Parse a function body. Pass StatementListBody if the body is a list of
// statements; pass ExpressionBody if the body is a single expression.