Commit 41bc5dac authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Added a utility method to search by line/column.

parent 3eee397a
......@@ -40,6 +40,7 @@ using namespace CPlusPlus;
QList<AST *> ASTPath::operator()(int line, int column)
{
qDebug()<<"path @" << line << column;
_nodes.clear();
_line = line + 1;
_column = column + 1;
......
......@@ -53,6 +53,7 @@ public:
QList<AST *> operator()(const QTextCursor &cursor)
{ return this->operator()(cursor.blockNumber(), cursor.columnNumber()); }
/// line and column are 0-based!
QList<AST *> operator()(int line, int column);
#ifdef DEBUG_AST_PATH
......
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