forked from qt-creator/qt-creator
The method enclosingSymbol() should always return a ScopedSymbol.
This commit is contained in:
@@ -242,7 +242,7 @@ void Symbol::setScope(Scope *scope)
|
||||
_scope = scope;
|
||||
}
|
||||
|
||||
Symbol *Symbol::enclosingSymbol() const
|
||||
ScopedSymbol *Symbol::enclosingSymbol() const
|
||||
{
|
||||
if (! _scope)
|
||||
return 0;
|
||||
|
||||
@@ -284,7 +284,7 @@ public:
|
||||
bool isUnavailable() const;
|
||||
void setUnavailable(bool isUnavailable);
|
||||
|
||||
Symbol *enclosingSymbol() const;
|
||||
ScopedSymbol *enclosingSymbol() const;
|
||||
|
||||
/// Returns the eclosing namespace scope.
|
||||
Scope *enclosingNamespaceScope() const;
|
||||
|
||||
Reference in New Issue
Block a user