diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-10 12:47:08 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-10 16:20:11 +0100 |
commit | 98802456b3b7573e0f76779c9ed4fb2007a8612d (patch) | |
tree | f47bb05d3cfc70cb9e5d0a86cd887e2ba66f2902 /src/shared/cplusplus/AST.cpp | |
parent | e5c9aaab4b1c4ac709eab50dc043e3c69235ecf7 (diff) | |
download | qt-creator-98802456b3b7573e0f76779c9ed4fb2007a8612d.tar.gz |
Removed ObjCPropertyAttributeListAST
Done with Erik Verbruggen
Diffstat (limited to 'src/shared/cplusplus/AST.cpp')
-rw-r--r-- | src/shared/cplusplus/AST.cpp | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/src/shared/cplusplus/AST.cpp b/src/shared/cplusplus/AST.cpp index 6aaf352701..4d7deaafd8 100644 --- a/src/shared/cplusplus/AST.cpp +++ b/src/shared/cplusplus/AST.cpp @@ -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 |