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

Unified Diff: src/parser.h

Issue 12646003: Add parser support for generators. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: Created 7 years, 9 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/parser.cc » ('j') | src/preparser.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 0f85f91583b161ceab4d80d6cd81b570f144f6d9..5a91f09575d6fc9538ddd4901cf6bcbc60342263 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -708,6 +708,8 @@ class Parser {
return scanner().Next();
}
+ bool inside_generator() const { return top_scope_->inside_generator(); }
+
bool peek_any_identifier();
INLINE(void Consume(Token::Value token));
« no previous file with comments | « no previous file | src/parser.cc » ('j') | src/preparser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698