forked from qt-creator/qt-creator
Fixes for highlighting locals in Objective-C methods.
This commit is contained in:
@@ -187,6 +187,14 @@ bool Scope::isFunctionScope() const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Scope::isObjCMethodScope() const
|
||||
{
|
||||
ObjCMethod *m = 0;
|
||||
if (_owner && 0 != (m = _owner->asObjCMethod()))
|
||||
return m->arguments() != this;
|
||||
return false;
|
||||
}
|
||||
|
||||
void Scope::enterSymbol(Symbol *symbol)
|
||||
{
|
||||
if (++_symbolCount == _allocatedSymbols) {
|
||||
|
||||
@@ -114,6 +114,9 @@ public:
|
||||
/// Returns true if this scope's owner is an ObjCClass Symbol.
|
||||
bool isObjCClassScope() const;
|
||||
|
||||
/// Returns true if this scope's owner is an ObjCMethod symbol.
|
||||
bool isObjCMethodScope() const;
|
||||
|
||||
/// Adds a Symbol to this Scope.
|
||||
void enterSymbol(Symbol *symbol);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user