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

Unified Diff: src/parsing/parser.h

Issue 1853763002: Allow constructor and method signatures in classes (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@types-1849803002-intf-decl
Patch Set: Fix method type annotations in the preparser Created 4 years, 8 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 56966382a30633933d086c8722d2c30d76cc90e8..f3facb288e929973319e55791675c9e2635d4207 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -500,6 +500,7 @@ class ParserTraits {
static Expression* EmptyExpression() {
return NULL;
}
+ static bool IsEmptyExpression(Expression* e) { return e == nullptr; }
static Literal* EmptyLiteral() {
return NULL;
}
« no previous file with comments | « src/ast/ast.h ('k') | src/parsing/parser-base.h » ('j') | test/cctest/test-parsing.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698