| Index: src/prettyprinter.cc
|
| diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc
|
| index 0d8dadce1a0257f7eef04fe12ade67cd157dd62c..602fbb40b9840178da9da9c48c24483f72daa26f 100644
|
| --- a/src/prettyprinter.cc
|
| +++ b/src/prettyprinter.cc
|
| @@ -122,6 +122,14 @@ void PrettyPrinter::VisitModuleUrl(ModuleUrl* node) {
|
| }
|
|
|
|
|
| +void PrettyPrinter::VisitModuleStatement(ModuleStatement* node) {
|
| + Print("module ");
|
| + PrintLiteral(node->proxy()->name(), false);
|
| + Print(" ");
|
| + Visit(node->body());
|
| +}
|
| +
|
| +
|
| void PrettyPrinter::VisitExpressionStatement(ExpressionStatement* node) {
|
| Visit(node->expression());
|
| Print(";");
|
| @@ -822,6 +830,13 @@ void AstPrinter::VisitModuleUrl(ModuleUrl* node) {
|
| }
|
|
|
|
|
| +void AstPrinter::VisitModuleStatement(ModuleStatement* node) {
|
| + IndentedScope indent(this, "MODULE");
|
| + PrintLiteralIndented("NAME", node->proxy()->name(), true);
|
| + PrintStatements(node->body()->statements());
|
| +}
|
| +
|
| +
|
| void AstPrinter::VisitExpressionStatement(ExpressionStatement* node) {
|
| Visit(node->expression());
|
| }
|
|
|