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

Unified Diff: src/parser.h

Issue 1168643005: [es6] parse destructuring assignment (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: WIP #1 Created 5 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
« no previous file with comments | « src/messages.h ('k') | src/parser.cc » ('j') | no next file with comments »
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 3d907184bce0edf52846d40c7535a166f83d6a08..7b3eea68afe2cdf1e0aca0a9f7753fb7db10d045 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -796,6 +796,8 @@ class ParserTraits {
const Scanner::Location& params_loc,
Scanner::Location* duplicate_loc, bool* ok);
+ Expression* RewriteDestructuringAssignment(Expression* expression);
+
void ReindexLiterals(const ParserFormalParameters& parameters);
// Temporary glue; these functions will move to ParserBase.
@@ -1103,6 +1105,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,
FunctionNameValidity function_name_validity, FunctionKind kind,
@@ -1367,6 +1371,12 @@ void ParserTraits::AddParameterInitializationBlock(
}
}
}
+
+
+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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698