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

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: 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') | src/pattern-rewriter.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 da2a98fcf310462264a0ace0fb5432e95fdcef6e..f65405897ccc51365bb93cf4b9f9237b86410612 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -1004,12 +1004,17 @@ class Parser : public ParserBase<ParserTraits> {
current_value_ = old_value;
}
+ Variable* CreateTemp(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 {
rossberg 2015/05/18 16:17:19 Nit: is there a strong reason to say "Temporary" h
Dmitry Lomov (no reviews) 2015/05/18 17:31:22 Yes, it is a declaration scope for temporary varia
+ return descriptor_->parser->scope_->DeclarationScope();
+ }
Expression* pattern_;
int initializer_position_;
« no previous file with comments | « no previous file | src/pattern-rewriter.cc » ('j') | src/pattern-rewriter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698