Inline Parser::checkFunctionDefinition into its sole caller.

This commit is contained in:
wolfbeast 2019-04-06 06:36:09 +02:00 • committed by Roy Tam
commit 9191d0d06b
2 changed files with 49 additions and 65 deletions

View file

@ -1349,8 +1349,6 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
Node newDotGeneratorName();
bool declareDotGeneratorName();
bool checkFunctionDefinition(HandlePropertyName funName, Node pn,
GeneratorKind generatorKind, bool* tryAnnexB);
bool skipLazyInnerFunction(Node pn, uint32_t preludeStart, FunctionSyntaxKind kind,
bool tryAnnexB);
bool innerFunction(Node pn, ParseContext* outerpc, HandleFunction fun, uint32_t preludeStart,