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

Unified Diff: src/ast/prettyprinter.cc

Issue 2108193003: [modules] AST and parser rework. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@anonymous-declarations
Patch Set: . Created 4 years, 5 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
Index: src/ast/prettyprinter.cc
diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc
index 4cf23c980cb0bb6de77bc415ab796e8be1410a98..c68084a6e7203c0cd7ab2112d5423a987f8ac0dd 100644
--- a/src/ast/prettyprinter.cc
+++ b/src/ast/prettyprinter.cc
@@ -101,10 +101,6 @@ void CallPrinter::VisitVariableDeclaration(VariableDeclaration* node) {}
void CallPrinter::VisitFunctionDeclaration(FunctionDeclaration* node) {}
-void CallPrinter::VisitImportDeclaration(ImportDeclaration* node) {
-}
-
-
void CallPrinter::VisitExpressionStatement(ExpressionStatement* node) {
Find(node->expression());
}
@@ -514,15 +510,6 @@ void PrettyPrinter::VisitFunctionDeclaration(FunctionDeclaration* node) {
}
-void PrettyPrinter::VisitImportDeclaration(ImportDeclaration* node) {
- Print("import ");
- PrintLiteral(node->proxy()->name(), false);
- Print(" from ");
- PrintLiteral(node->module_specifier()->string(), true);
- Print(";");
-}
-
-
void PrettyPrinter::VisitExpressionStatement(ExpressionStatement* node) {
Visit(node->expression());
Print(";");
@@ -1294,13 +1281,6 @@ void AstPrinter::VisitFunctionDeclaration(FunctionDeclaration* node) {
}
-void AstPrinter::VisitImportDeclaration(ImportDeclaration* node) {
- IndentedScope indent(this, "IMPORT", node->position());
- PrintLiteralIndented("NAME", node->proxy()->name(), true);
- PrintLiteralIndented("FROM", node->module_specifier()->string(), true);
-}
-
-
void AstPrinter::VisitExpressionStatement(ExpressionStatement* node) {
IndentedScope indent(this, "EXPRESSION STATEMENT", node->position());
Visit(node->expression());

Powered by Google App Engine
This is Rietveld 408576698