forked from qt-creator/qt-creator
Implemented ObjcMethod::argumentCount().
This commit is contained in:
@@ -956,8 +956,10 @@ bool ObjCMethod::hasReturnType() const
|
|||||||
|
|
||||||
unsigned ObjCMethod::argumentCount() const
|
unsigned ObjCMethod::argumentCount() const
|
||||||
{
|
{
|
||||||
// ### port me
|
const unsigned c = memberCount();
|
||||||
return memberCount();
|
if (c > 0 && memberAt(c - 1)->isBlock())
|
||||||
|
return c - 1;
|
||||||
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
Symbol *ObjCMethod::argumentAt(unsigned index) const
|
Symbol *ObjCMethod::argumentAt(unsigned index) const
|
||||||
|
Reference in New Issue
Block a user