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

Unified Diff: src/parsing/parser.h

Issue 1900033003: Disallow generator declarations in certain locations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/parsing/parser.cc » ('j') | src/parsing/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index 6285c0c6789d9d98c3b2c7f151c7b41e4b494922..e4287a75f658a9027c1276615a55b777632857db 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -760,6 +760,7 @@ class Parser : public ParserBase<ParserTraits> {
bool* ok);
Statement* ParseStatementAsUnlabelled(ZoneList<const AstRawString*>* labels,
bool* ok);
+ Statement* ParseOnlyFunctionDeclaration(bool* ok);
Statement* ParseFunctionDeclaration(ZoneList<const AstRawString*>* names,
adamk 2016/04/20 19:09:28 Perhaps these could be called "ParseHoistableDecla
Dan Ehrenberg 2016/04/26 22:24:19 Done
bool* ok);
Statement* ParseFunctionDeclaration(int pos, bool is_generator,
« no previous file with comments | « src/messages.h ('k') | src/parsing/parser.cc » ('j') | src/parsing/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698