Commit 8433ba2d authored by Roberto Raggi's avatar Roberto Raggi

Store the NameAST*

parent fd8cd69a
......@@ -182,14 +182,14 @@ public:
{ }
struct Use {
SimpleNameAST *name;
NameAST *name;
unsigned line;
unsigned column;
unsigned length;
Use(){}
Use(SimpleNameAST *name, unsigned line, unsigned column, unsigned length)
Use(NameAST *name, unsigned line, unsigned column, unsigned length)
: name(name), line(line), column(column), length(length) {}
};
......@@ -879,7 +879,7 @@ static void highlightUses(QTextDocument *doc,
QList<QTextEdit::ExtraSelection> *selections)
{
foreach (const FindUses::Use &use, uses) {
SimpleNameAST *name = use.name;
NameAST *name = use.name;
bool generated = false;
for (unsigned tk = name->firstToken(), end = name->lastToken(); tk != end; ++tk) {
......
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