ObjCList<ParmVarDecl> ParamInfo;
/// List of attributes for this method declaration.
- SourceLocation EndLoc; // the location of the ';' or '{'.
+ SourceLocation EndLoc; // the location of the ';' or '}'.
// The following are only used for method definitions, null otherwise.
// FIXME: space savings opportunity, consider a sub-class.
} else if (ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(dcl)) {
assert(MD == getCurMethodDecl() && "Method parsing confused");
MD->setBody(Body);
+ MD->setEndLoc(Body->getLocEnd());
if (!MD->isInvalidDecl())
DiagnoseUnusedParameters(MD->param_begin(), MD->param_end());