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

Added a dump method to the ASTPath.

parent 8d8312a4
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,13 @@ public: ...@@ -70,6 +70,13 @@ public:
return _nodes; return _nodes;
} }
static void dump(const QList<AST *> nodes)
{
qDebug() << "ASTPath dump," << nodes.size() << "nodes:";
for (int i = 0; i < nodes.size(); ++i)
qDebug() << qPrintable(QString(i + 1, QLatin1Char('-'))) << typeid(*nodes.at(i)).name();
}
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