Index: src/ast.cc |
=================================================================== |
--- src/ast.cc (revision 3048) |
+++ src/ast.cc (working copy) |
@@ -173,6 +173,13 @@ |
// Implementation of AstVisitor |
+void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) { |
+ for (int i = 0; i < declarations->length(); i++) { |
+ Visit(declarations->at(i)); |
+ } |
+} |
+ |
+ |
void AstVisitor::VisitStatements(ZoneList<Statement*>* statements) { |
for (int i = 0; i < statements->length(); i++) { |
Visit(statements->at(i)); |