Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index 94f83ff2e78cbf2e986fc22430ea3b84502b417e..e711667e3a1808925e5c66737421d8299c722638 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -757,8 +757,12 @@ class Parser : public ParserBase<ParserTraits> { |
ZoneList<const AstRawString*>* local_names, |
Scanner::Location* reserved_loc, bool* ok); |
ZoneList<ImportDeclaration*>* ParseNamedImports(int pos, bool* ok); |
- Statement* ParseStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
- Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, bool* ok); |
+ Statement* ParseStatement(ZoneList<const AstRawString*>* labels, |
+ AllowLabelledFunctionStatement allow_function, |
+ bool* ok); |
+ Statement* ParseSubStatement(ZoneList<const AstRawString*>* labels, |
+ AllowLabelledFunctionStatement allow_function, |
+ bool* ok); |
Statement* ParseStatementAsUnlabelled(ZoneList<const AstRawString*>* labels, |
bool* ok); |
Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names, |
@@ -900,7 +904,8 @@ class Parser : public ParserBase<ParserTraits> { |
ZoneList<const AstRawString*>* names, |
bool* ok); |
Statement* ParseExpressionOrLabelledStatement( |
- ZoneList<const AstRawString*>* labels, bool* ok); |
+ ZoneList<const AstRawString*>* labels, |
+ AllowLabelledFunctionStatement allow_function, bool* ok); |
IfStatement* ParseIfStatement(ZoneList<const AstRawString*>* labels, |
bool* ok); |
Statement* ParseContinueStatement(bool* ok); |