forked from qt-creator/qt-creator
Added a dump method to the ASTPath.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user