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

Unified Diff: src/parser.h

Issue 1146683002: [destructuring] Implement initializers in patterns. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased onto ToT Created 5 years, 7 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 | « no previous file | src/pattern-rewriter.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 19ddb69f36fa4f1c8f2017e27854a48ca5994208..e3154f935fe455d86287b1412fe025ef8e4f6c0d 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -1007,15 +1007,14 @@ class Parser : public ParserBase<ParserTraits> {
current_value_ = old_value;
}
+ Variable* CreateTempVar(Expression* value);
+
AstNodeFactory* factory() const { return descriptor_->parser->factory(); }
AstValueFactory* ast_value_factory() const {
return descriptor_->parser->ast_value_factory();
}
bool inside_with() const { return descriptor_->parser->inside_with(); }
Zone* zone() const { return descriptor_->parser->zone(); }
- Scope* TemporaryDeclarationScope() const {
- return descriptor_->parser->scope_->DeclarationScope();
- }
Expression* pattern_;
int initializer_position_;
« no previous file with comments | « no previous file | src/pattern-rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698