Commit fb6f68b8 authored by adamk's avatar adamk Committed by Commit bot

Rename ParseModule to ParseModuleItemList

TBR=rossberg@chromium.org

Review URL: https://codereview.chromium.org/952343002

Cr-Commit-Position: refs/heads/master@{#26868}
parent 6b1bddb4
...@@ -942,7 +942,7 @@ FunctionLiteral* Parser::DoParseProgram(CompilationInfo* info, Scope** scope, ...@@ -942,7 +942,7 @@ FunctionLiteral* Parser::DoParseProgram(CompilationInfo* info, Scope** scope,
int beg_pos = scanner()->location().beg_pos; int beg_pos = scanner()->location().beg_pos;
if (info->is_module()) { if (info->is_module()) {
DCHECK(allow_harmony_modules()); DCHECK(allow_harmony_modules());
ParseModule(body, &ok); ParseModuleItemList(body, &ok);
} else { } else {
ParseStatementList(body, Token::EOS, info->is_eval(), eval_scope, &ok); ParseStatementList(body, Token::EOS, info->is_eval(), eval_scope, &ok);
} }
...@@ -1242,7 +1242,7 @@ Statement* Parser::ParseModuleItem(bool* ok) { ...@@ -1242,7 +1242,7 @@ Statement* Parser::ParseModuleItem(bool* ok) {
} }
void* Parser::ParseModule(ZoneList<Statement*>* body, bool* ok) { void* Parser::ParseModuleItemList(ZoneList<Statement*>* body, bool* ok) {
// (Ecma 262 6th Edition, 15.2): // (Ecma 262 6th Edition, 15.2):
// Module : // Module :
// ModuleBody? // ModuleBody?
......
...@@ -704,7 +704,7 @@ class Parser : public ParserBase<ParserTraits> { ...@@ -704,7 +704,7 @@ class Parser : public ParserBase<ParserTraits> {
void* ParseStatementList(ZoneList<Statement*>* body, int end_token, void* ParseStatementList(ZoneList<Statement*>* body, int end_token,
bool is_eval, Scope** ad_hoc_eval_scope, bool* ok); bool is_eval, Scope** ad_hoc_eval_scope, bool* ok);
Statement* ParseStatementListItem(bool* ok); Statement* ParseStatementListItem(bool* ok);
void* ParseModule(ZoneList<Statement*>* body, bool* ok); void* ParseModuleItemList(ZoneList<Statement*>* body, bool* ok);
Statement* ParseModuleItem(bool* ok); Statement* ParseModuleItem(bool* ok);
Literal* ParseModuleSpecifier(bool* ok); Literal* ParseModuleSpecifier(bool* ok);
Statement* ParseImportDeclaration(bool* ok); Statement* ParseImportDeclaration(bool* ok);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment