Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index fbc4a1529d71efe2372d5ce1fd34f23b0c536f7e..66c801d9817e081d603d6bb083942e1ea4737b27 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -464,7 +464,8 @@ class Parser { |
}; |
enum VariableDeclarationContext { |
- kSourceElement, |
+ kModuleElement, |
+ kBlockElement, |
kStatement, |
kForStatement |
}; |
@@ -575,7 +576,16 @@ class Parser { |
// for failure at the call sites. |
void* ParseSourceElements(ZoneList<Statement*>* processor, |
int end_token, bool* ok); |
- Statement* ParseSourceElement(ZoneStringList* labels, bool* ok); |
+ Statement* ParseModuleElement(ZoneStringList* labels, bool* ok); |
+ Block* ParseModuleDeclaration(bool* ok); |
+ Module* ParseModule(bool* ok); |
+ Module* ParseModuleLiteral(bool* ok); |
+ Module* ParseModulePath(bool* ok); |
+ Module* ParseModuleVariable(bool* ok); |
+ Module* ParseModuleUrl(bool* ok); |
+ Block* ParseImportDeclaration(bool* ok); |
+ Block* ParseExportDeclaration(bool* ok); |
+ Statement* ParseBlockElement(ZoneStringList* labels, bool* ok); |
Statement* ParseStatement(ZoneStringList* labels, bool* ok); |
Statement* ParseFunctionDeclaration(bool* ok); |
Statement* ParseNativeDeclaration(bool* ok); |