Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index b82a5531caeaf2416fae3855c549127e61869cc3..9bb92e840899c2b21e1ad51ee16aacf6427ecc5c 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -558,7 +558,7 @@ class ParserTraits { |
AstNodeFactory* factory); |
Expression* ExpressionFromIdentifier(const AstRawString* name, |
int start_position, int end_position, |
- InferName = InferName::Yes); |
+ InferName = InferName::kYes); |
Expression* ExpressionFromString(int pos, Scanner* scanner, |
AstNodeFactory* factory); |
Expression* GetIterator(Expression* iterable, AstNodeFactory* factory, |
@@ -769,6 +769,8 @@ class Parser : public ParserBase<ParserTraits> { |
kAbruptCompletion |
}; |
+ enum class FunctionBodyType { kNormal, kSingleExpression }; |
+ |
DeclarationScope* GetDeclarationScope() const { |
return scope()->GetDeclarationScope(); |
} |
@@ -1041,7 +1043,7 @@ class Parser : public ParserBase<ParserTraits> { |
void DesugarAsyncFunctionBody(const AstRawString* function_name, Scope* scope, |
ZoneList<Statement*>* body, |
Type::ExpressionClassifier* classifier, |
- FunctionKind kind, FunctionBody type, |
+ FunctionKind kind, FunctionBodyType type, |
bool accept_IN, int pos, bool* ok); |
void RewriteDoExpression(Expression* expr, bool* ok); |