Commit b81e3585 authored by Roberto Raggi's avatar Roberto Raggi

Implemented ObjcMethod::argumentCount().

parent 08eb3a93
......@@ -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
......
Markdown is supported
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