forked from qt-creator/qt-creator
Added scope calculation for Objective-C classes.
This commit is contained in:
@@ -104,6 +104,9 @@ protected:
|
||||
virtual void visit(QualifiedNameId *name)
|
||||
{ _value = operator()(name->unqualifiedNameId()); }
|
||||
|
||||
virtual void visit(SelectorNameId *name)
|
||||
{ _value = name->identifier()->hashCode(); }
|
||||
|
||||
private:
|
||||
unsigned _value;
|
||||
};
|
||||
@@ -151,6 +154,9 @@ protected:
|
||||
virtual void visit(QualifiedNameId *name)
|
||||
{ _identity = name->unqualifiedNameId(); }
|
||||
|
||||
virtual void visit(SelectorNameId *name)
|
||||
{ _identity = name; }
|
||||
|
||||
private:
|
||||
Name *_identity;
|
||||
};
|
||||
@@ -461,6 +467,12 @@ bool Symbol::isArgument() const
|
||||
bool Symbol::isBaseClass() const
|
||||
{ return asBaseClass() != 0; }
|
||||
|
||||
bool Symbol::isObjCBaseClass() const
|
||||
{ return asObjCBaseClass() != 0; }
|
||||
|
||||
bool Symbol::isObjCBaseProtocol() const
|
||||
{ return asObjCBaseProtocol() != 0; }
|
||||
|
||||
bool Symbol::isObjCClass() const
|
||||
{ return asObjCClass() != 0; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user