Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(854)

Unified Diff: src/parsing/parser.h

Issue 2245133003: [style] Rename some enum values with 'k' prefix (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parsing/func-name-inferrer.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/parsing/func-name-inferrer.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698