Commit d7b59b50 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

No declSymbol, no party

parent 33fedfea
......@@ -62,8 +62,10 @@ QList<int> FindUsages::operator()(Symbol *symbol, Identifier *id, AST *ast)
_references.clear();
_declSymbol = symbol;
_id = id;
_exprDoc = Document::create("<references>");
accept(ast);
if (_declSymbol && _id) {
_exprDoc = Document::create("<references>");
accept(ast);
}
return _references;
}
......
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