Commit b81e3585 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Implemented ObjcMethod::argumentCount().

parent 08eb3a93
...@@ -956,8 +956,10 @@ bool ObjCMethod::hasReturnType() const ...@@ -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
......
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