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

Unified Diff: src/parsing/preparser.h

Issue 1696603002: Remove AssignmentExpressionFlags enum, handle error checking in callers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Eliminate early return Created 4 years, 10 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/parser-base.h ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index 32b6446399d7f4af3cbc49441137ca11cbb44b1a..fc187c4c101f4b094fd95a42829a03e10825ba41 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -197,6 +197,8 @@ class PreParserExpression {
ExpressionTypeField::decode(code_) == kAssignment;
}
+ bool IsRewritableAssignmentExpression() const { return IsAssignment(); }
+
bool IsObjectLiteral() const {
return TypeField::decode(code_) == kObjectLiteralExpression;
}
« no previous file with comments | « src/parsing/parser-base.h ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698