forked from qt-creator/qt-creator
Added method to check if a scope is an ObjCClass scope.
This commit is contained in:
@@ -172,6 +172,13 @@ bool Scope::isPrototypeScope() const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Scope::isObjCClassScope() const
|
||||
{
|
||||
if (_owner)
|
||||
return _owner->isObjCClass();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Scope::isFunctionScope() const
|
||||
{
|
||||
Function *f = 0;
|
||||
|
||||
@@ -111,6 +111,9 @@ public:
|
||||
/// Returns true if this scope's owner is a Prototype Symbol.
|
||||
bool isPrototypeScope() const;
|
||||
|
||||
/// Returns true if this scope's owner is an ObjCClass Symbol.
|
||||
bool isObjCClassScope() const;
|
||||
|
||||
/// Adds a Symbol to this Scope.
|
||||
void enterSymbol(Symbol *symbol);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user