Commit 918856ca authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Added method to check if a scope is an ObjCClass scope.

parent 19beb9c8
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment