Commit 99bc0bc6 authored by Erik Verbruggen's avatar Erik Verbruggen

Added a dump method to the ASTPath.

parent 8d8312a4
......@@ -70,6 +70,13 @@ public:
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:
virtual bool preVisit(AST *ast)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment