Skip to content
Snippets Groups Projects
Commit 59a4b03b authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

ifdeffed out a debug-utility method.

parent 99bc0bc6
No related branches found
No related tags found
No related merge requests found
...@@ -70,12 +70,15 @@ public: ...@@ -70,12 +70,15 @@ public:
return _nodes; return _nodes;
} }
#if 0
// Useful for debugging:
static void dump(const QList<AST *> nodes) static void dump(const QList<AST *> nodes)
{ {
qDebug() << "ASTPath dump," << nodes.size() << "nodes:"; qDebug() << "ASTPath dump," << nodes.size() << "nodes:";
for (int i = 0; i < nodes.size(); ++i) for (int i = 0; i < nodes.size(); ++i)
qDebug() << qPrintable(QString(i + 1, QLatin1Char('-'))) << typeid(*nodes.at(i)).name(); qDebug() << qPrintable(QString(i + 1, QLatin1Char('-'))) << typeid(*nodes.at(i)).name();
} }
#endif
protected: protected:
virtual bool preVisit(AST *ast) virtual bool preVisit(AST *ast)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment