File indexing completed on 2024-04-28 04:36:05

0001 /*
0002    (C) Copyright 2009 Jonathan Schmidt-Dominé <devel@the-user.org>
0003    Derived from the KDevelop-Java-Parser
0004 
0005    This library is free software; you can redistribute it and/or
0006    modify it under the terms of the GNU Library General Public
0007    License version 2 as published by the Free Software Foundation.
0008 
0009    This library is distributed in the hope that it will be useful,
0010    but WITHOUT ANY WARRANTY; without even the implied warranty of
0011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012    Library General Public License for more details.
0013 
0014    You should have received a copy of the GNU Library General Public License
0015    along with this library; see the file COPYING.LIB.  If not, write to
0016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0017    Boston, MA 02110-1301, USA.
0018 */
0019 
0020 #ifndef DUMPTREE_H
0021 #define DUMPTREE_H
0022 
0023 #include "ccdefaultvisitor.h"
0024 
0025 namespace cc
0026 {
0027 
0028 class DumpTree : public cc::DefaultVisitor
0029 {
0030 public:
0031   DumpTree();
0032   virtual ~DumpTree();
0033 
0034   void dump(cc::AstNode *node);
0035 
0036 protected:
0037   virtual void visitNode(cc::AstNode *node);
0038 
0039 private:
0040   int indent;
0041 };
0042 
0043 }
0044 
0045 #endif // DUMPTREE_H
0046