language/duchain
dumpchain.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef DUMPCHAIN_H
00022 #define DUMPCHAIN_H
00023
00024 #include "../languageexport.h"
00025 #include <QtCore/QString>
00026 #include <QtCore/QSet>
00027
00028 namespace KTextEditor {
00029 class SmartRange;
00030 }
00031
00032 namespace KDevelop
00033 {
00034 class DUContext;
00035 class TopDUContext;
00036
00037 class KDEVPLATFORMLANGUAGE_EXPORT DumpChain
00038 {
00039 public:
00040 DumpChain();
00041 virtual ~DumpChain();
00042
00045 void dump(DUContext* context, int allowedDepth = 0);
00046
00047 QString dumpRanges(KTextEditor::SmartRange* range, QString indent = QString());
00048
00049 private:
00050 int indent;
00051 TopDUContext* top;
00052 QSet<DUContext*> had;
00053 };
00054 }
00055 #endif // DUMPCHAIN_H