Index: src/ast/prettyprinter.cc |
diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc |
index 19e9478da27a18f38fbbb7e6eb6279e84e873c8b..a3fc50ae571d8cfa9e434880e5b6b88c8c77b8cf 100644 |
--- a/src/ast/prettyprinter.cc |
+++ b/src/ast/prettyprinter.cc |
@@ -662,13 +662,10 @@ void AstPrinter::PrintOut(Isolate* isolate, AstNode* node) { |
PrintF("%s", printer.output_); |
} |
- |
-void AstPrinter::PrintDeclarations(ZoneList<Declaration*>* declarations) { |
- if (declarations->length() > 0) { |
+void AstPrinter::PrintDeclarations(Declaration::List* declarations) { |
+ if (!declarations->is_empty()) { |
IndentedScope indent(this, "DECLS"); |
- for (int i = 0; i < declarations->length(); i++) { |
- Visit(declarations->at(i)); |
- } |
+ for (Declaration* decl : *declarations) Visit(decl); |
} |
} |