forked from qt-creator/qt-creator
Added a utility method to search by line/column.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user