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

Unified Diff: src/parsing/parser.h

Issue 2313723005: [parser] Simplify parse-time function name inference for properties (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | 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 aa7d1caf8495cf96e26c30cded36799922a62f14..71f6a6a1b8364d5fc0cc3270444cf48f8b5a5b4a 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -1017,9 +1017,10 @@ class Parser : public ParserBase<Parser> {
Expression* ExpressionListToExpression(ZoneList<Expression*>* args);
- void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property,
+ void AddAccessorPrefixToFunctionName(bool is_get, FunctionLiteral* function,
const AstRawString* name);
- void SetFunctionNameFromPropertyName(ClassLiteralProperty* property,
+
+ void SetFunctionNameFromPropertyName(ObjectLiteralProperty* property,
const AstRawString* name);
void SetFunctionNameFromIdentifierRef(Expression* value,
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698