Index: src/prettyprinter.cc |
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc |
index 9969b07f1f25d21e2ee7b2efa71bd0c84cab30a0..d940704973ac788df3f3c55b0fbc3fe115f24f3f 100644 |
--- a/src/prettyprinter.cc |
+++ b/src/prettyprinter.cc |
@@ -58,7 +58,7 @@ void PrettyPrinter::VisitBlock(Block* node) { |
} |
-void PrettyPrinter::VisitDeclaration(Declaration* node) { |
+void PrettyPrinter::VisitVariableDeclaration(VariableDeclaration* node) { |
Print("var "); |
PrintLiteral(node->proxy()->name(), false); |
if (node->fun() != NULL) { |
@@ -711,7 +711,7 @@ void AstPrinter::VisitBlock(Block* node) { |
} |
-void AstPrinter::VisitDeclaration(Declaration* node) { |
+void AstPrinter::VisitVariableDeclaration(VariableDeclaration* node) { |
if (node->fun() == NULL) { |
// var or const declarations |
PrintLiteralWithModeIndented(Variable::Mode2String(node->mode()), |