Introduced LookupContext::canonicalSymbol().

This commit is contained in:
Roberto Raggi
2009-09-25 14:00:58 +02:00
parent e9a5ab1b0d
commit 20ff553b59
2 changed files with 41 additions and 0 deletions

View File

@@ -54,6 +54,9 @@ public:
Document::Ptr document(const QString &fileName) const;
Snapshot snapshot() const;
static Symbol *canonicalSymbol(Symbol *symbol);
static Symbol *canonicalSymbol(const QList<Symbol *> &candidates);
QList<Symbol *> resolve(Name *name) const
{ return resolve(name, visibleScopes()); }