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

Unified Diff: src/parsing/parser.h

Issue 2279363002: Remove duplicated code from comma-separated Expression parsing (Closed)
Patch Set: Remove unused message 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
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index 18f9b78d657b94cc89242ece08f6923420a7c6d1..4485c3a673f7af553fc1d554a477882f95aa2389 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -879,6 +879,10 @@ class Parser : public ParserBase<Parser> {
}
V8_INLINE static FunctionLiteral* EmptyFunctionLiteral() { return nullptr; }
+ V8_INLINE static bool IsEmptyExpression(Expression* expr) {
+ return expr == nullptr;
+ }
+
// Used in error return values.
V8_INLINE static ZoneList<Expression*>* NullExpressionList() {
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698