forked from qt-creator/qt-creator
Improved support for private classes.
This commit is contained in:
@@ -208,6 +208,21 @@ void Scope::enterSymbol(Symbol *symbol)
|
||||
}
|
||||
}
|
||||
|
||||
Symbol *Scope::lookat(Name *name) const
|
||||
{
|
||||
if (! name)
|
||||
return 0;
|
||||
|
||||
else if (OperatorNameId *opId = name->asOperatorNameId())
|
||||
return lookat(opId->kind());
|
||||
|
||||
else if (Identifier *id = name->identifier())
|
||||
return lookat(id);
|
||||
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
Symbol *Scope::lookat(Identifier *id) const
|
||||
{
|
||||
if (! _hash || ! id)
|
||||
|
||||
@@ -129,6 +129,7 @@ public:
|
||||
/// Returns the last Symbol in the scope.
|
||||
iterator lastSymbol() const;
|
||||
|
||||
Symbol *lookat(Name *name) const;
|
||||
Symbol *lookat(Identifier *id) const;
|
||||
Symbol *lookat(int operatorId) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user