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

Unified Diff: src/parser.h

Issue 1168643005: [es6] parse destructuring assignment (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nits ForIn/Of tests Created 5 years, 6 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/messages.h ('k') | src/parser.cc » ('j') | test/cctest/test-parsing.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index 05961414098186770fe538b6c0df619daedd78f4..abc549853e0190464d8b3f3ea393398106270eb6 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -849,6 +849,8 @@ class ParserTraits {
ZoneList<v8::internal::Expression*>* args,
int pos);
+ inline Expression* RewriteDestructuringAssignment(Expression* expr);
+
private:
Parser* parser_;
};
@@ -1076,6 +1078,8 @@ class Parser : public ParserBase<ParserTraits> {
ForStatement* loop, Statement* init, Expression* cond, Statement* next,
Statement* body, bool* ok);
+ Expression* DesugarDestructuringAssignment(Expression* expr);
+
FunctionLiteral* ParseFunctionLiteral(
const AstRawString* name, Scanner::Location function_name_location,
bool name_is_strict_reserved, FunctionKind kind,
@@ -1280,6 +1284,12 @@ Expression* ParserTraits::SpreadCallNew(
Expression* function, ZoneList<v8::internal::Expression*>* args, int pos) {
return parser_->SpreadCallNew(function, args, pos);
}
+
+
+inline Expression* ParserTraits::RewriteDestructuringAssignment(
+ Expression* expr) {
+ return parser_->DesugarDestructuringAssignment(expr);
+}
} } // namespace v8::internal
#endif // V8_PARSER_H_
« no previous file with comments | « src/messages.h ('k') | src/parser.cc » ('j') | test/cctest/test-parsing.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698