Removed ObjCPropertyAttributeListAST

Done with Erik Verbruggen
This commit is contained in:
Roberto Raggi
2009-11-10 12:47:08 +01:00
parent e5c9aaab4b
commit 98802456b3
6 changed files with 7 additions and 53 deletions

View File

@@ -2114,27 +2114,6 @@ unsigned ObjCPropertyAttributeAST::lastToken() const
return attribute_identifier_token + 1;
}
unsigned ObjCPropertyAttributeListAST::firstToken() const
{
if (attr)
return attr->firstToken();
else if (next)
return next->lastToken();
else
// ### Assert?
return 0;
}
unsigned ObjCPropertyAttributeListAST::lastToken() const
{
for (const ObjCPropertyAttributeListAST *it = this; it; it = it->next) {
if (! it->next && it->attr)
return it->attr->lastToken();
}
// ### assert?
return 0;
}
unsigned ObjCPropertyDeclarationAST::firstToken() const
{
if (attributes)
@@ -2153,8 +2132,8 @@ unsigned ObjCPropertyDeclarationAST::lastToken() const
return property_attributes->lastToken();
else if (lparen_token)
return lparen_token + 1;
else
return property_token + 1;
return property_token + 1;
}
unsigned ObjCMessageArgumentDeclarationAST::firstToken() const
@@ -2213,8 +2192,7 @@ unsigned ObjCMethodPrototypeAST::lastToken() const
return arguments->lastToken();
else if (type_name)
return type_name->lastToken();
else
return method_type_token + 1;
return method_type_token + 1;
}
unsigned ObjCMethodDeclarationAST::firstToken() const