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

Unified Diff: src/parsing/preparser.h

Issue 2324843005: [parser] Refactor of Parse*Statement*, part 6 (Closed)
Patch Set: Reorder methods Created 4 years, 3 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/parsing/parser-base.h ('k') | src/parsing/preparser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index 4e7598fff4e1a98de42a6de310c4792db165da1f..ddc74c53180867f6fb679e7aeaffe5ce90ca0673 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -651,6 +651,16 @@ class PreParserFactory {
return PreParserStatement::Default();
}
+ PreParserStatement NewSwitchStatement(ZoneList<const AstRawString*>* labels,
+ int pos) {
+ return PreParserStatement::Default();
+ }
+
+ PreParserStatement NewCaseClause(PreParserExpression label,
+ PreParserStatementList statements, int pos) {
+ return PreParserStatement::Default();
+ }
+
// Return the object itself as AstVisitor and implement the needed
// dummy method right in this class.
PreParserFactory* visitor() { return this; }
@@ -704,8 +714,8 @@ struct ParserTypes<PreParser> {
typedef PreParserStatement Statement;
typedef PreParserStatementList StatementList;
typedef PreParserStatement Block;
- typedef PreParserStatement BreakableStatementT;
- typedef PreParserStatement IterationStatementT;
+ typedef PreParserStatement BreakableStatement;
+ typedef PreParserStatement IterationStatement;
// For constructing objects returned by the traversing functions.
typedef PreParserFactory Factory;
@@ -814,8 +824,6 @@ class PreParser : public ParserBase<PreParser> {
Expression ParseAsyncFunctionExpression(bool* ok);
Statement ParseClassDeclaration(ZoneList<const AstRawString*>* names,
bool default_export, bool* ok);
- Statement ParseSwitchStatement(ZoneList<const AstRawString*>* labels,
- bool* ok);
Statement ParseForStatement(ZoneList<const AstRawString*>* labels, bool* ok);
Statement ParseTryStatement(bool* ok);
Expression ParseConditionalExpression(bool accept_IN, bool* ok);
@@ -933,6 +941,11 @@ class PreParser : public ParserBase<PreParser> {
int pos) {
return return_value;
}
+ V8_INLINE PreParserStatement RewriteSwitchStatement(
+ PreParserExpression tag, PreParserStatement switch_statement,
+ PreParserStatementList cases, Scope* scope) {
+ return PreParserStatement::Default();
+ }
V8_INLINE PreParserExpression RewriteDoExpression(PreParserStatement body,
int pos, bool* ok) {
@@ -1256,6 +1269,10 @@ class PreParser : public ParserBase<PreParser> {
return PreParserStatementList();
}
+ PreParserStatementList NewCaseClauseList(int size) {
+ return PreParserStatementList();
+ }
+
V8_INLINE static PreParserStatement NewBlock(
ZoneList<const AstRawString*>* labels, int capacity,
bool ignore_completion_value, int pos) {
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/parsing/preparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698