summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/AST.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-11-10 11:23:35 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-11-10 16:20:09 +0100
commit36a0ea2bcbe306ef845549defb894f479b47a9a1 (patch)
tree88252dd63e214dacb9683092876081e1273e4fc4 /src/shared/cplusplus/AST.cpp
parent4089c906fa0fb2988e73c23d8eeb5a15d8b8629f (diff)
downloadqt-creator-36a0ea2bcbe306ef845549defb894f479b47a9a1.tar.gz
Removed DeclarationListAST node.
Done with Erik Verbruggen
Diffstat (limited to 'src/shared/cplusplus/AST.cpp')
-rw-r--r--src/shared/cplusplus/AST.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/shared/cplusplus/AST.cpp b/src/shared/cplusplus/AST.cpp
index 18357aee9d..9cb2d1f742 100644
--- a/src/shared/cplusplus/AST.cpp
+++ b/src/shared/cplusplus/AST.cpp
@@ -552,21 +552,6 @@ unsigned CtorInitializerAST::lastToken() const
return colon_token + 1;
}
-unsigned DeclarationListAST::firstToken() const
-{
- return declaration->firstToken();
-}
-
-unsigned DeclarationListAST::lastToken() const
-{
- for (const DeclarationListAST *it = this; it; it = it->next) {
- if (! it->next)
- return it->declaration->lastToken();
- }
-
- return 0;
-}
-
unsigned DeclaratorAST::firstToken() const
{
if (attributes)
@@ -1642,7 +1627,7 @@ unsigned TemplateTypeParameterAST::lastToken() const
for (DeclarationListAST *it = template_parameters; it; it = it->next) {
if (! it->next)
- return it->declaration->lastToken();
+ return it->value->lastToken();
}
if (less_token)