Implemented ObjcMethod::argumentCount().

This commit is contained in:
Roberto Raggi
2010-08-16 11:31:53 +02:00
parent 08eb3a93cb
commit b81e3585c3

View File

@@ -956,8 +956,10 @@ bool ObjCMethod::hasReturnType() const
unsigned ObjCMethod::argumentCount() const
{
// ### port me
return memberCount();
const unsigned c = memberCount();
if (c > 0 && memberAt(c - 1)->isBlock())
return c - 1;
return c;
}
Symbol *ObjCMethod::argumentAt(unsigned index) const