From: adamk Date: Wed, 25 Feb 2015 23:00:10 +0000 (-0800) Subject: Rename ParseModule to ParseModuleItemList X-Git-Tag: upstream/4.7.83~4172 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb6f68b8a88786c0b91421cc2c72937faa75e0a3;p=platform%2Fupstream%2Fv8.git Rename ParseModule to ParseModuleItemList TBR=rossberg@chromium.org Review URL: https://codereview.chromium.org/952343002 Cr-Commit-Position: refs/heads/master@{#26868} --- diff --git a/src/parser.cc b/src/parser.cc index 070bb3b..e136d96 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -942,7 +942,7 @@ FunctionLiteral* Parser::DoParseProgram(CompilationInfo* info, Scope** scope, int beg_pos = scanner()->location().beg_pos; if (info->is_module()) { DCHECK(allow_harmony_modules()); - ParseModule(body, &ok); + ParseModuleItemList(body, &ok); } else { ParseStatementList(body, Token::EOS, info->is_eval(), eval_scope, &ok); } @@ -1242,7 +1242,7 @@ Statement* Parser::ParseModuleItem(bool* ok) { } -void* Parser::ParseModule(ZoneList* body, bool* ok) { +void* Parser::ParseModuleItemList(ZoneList* body, bool* ok) { // (Ecma 262 6th Edition, 15.2): // Module : // ModuleBody? diff --git a/src/parser.h b/src/parser.h index a10a18e..0bfd317 100644 --- a/src/parser.h +++ b/src/parser.h @@ -704,7 +704,7 @@ class Parser : public ParserBase { void* ParseStatementList(ZoneList* body, int end_token, bool is_eval, Scope** ad_hoc_eval_scope, bool* ok); Statement* ParseStatementListItem(bool* ok); - void* ParseModule(ZoneList* body, bool* ok); + void* ParseModuleItemList(ZoneList* body, bool* ok); Statement* ParseModuleItem(bool* ok); Literal* ParseModuleSpecifier(bool* ok); Statement* ParseImportDeclaration(bool* ok);