summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/AST.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-11-10 12:37:46 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-11-10 16:20:10 +0100
commit8efb73f5d2a84d70aae134dcf45cac87c70fa76f (patch)
tree9185b91b2a8b54bd90b0ba5cdefd30963d6403a9 /src/shared/cplusplus/AST.cpp
parent6e3e293e535b368ccae8179bd32f9b1d0d80718a (diff)
downloadqt-creator-8efb73f5d2a84d70aae134dcf45cac87c70fa76f.tar.gz
Removed TemplateArgumentListAST
Done with Erik Verbruggen
Diffstat (limited to 'src/shared/cplusplus/AST.cpp')
-rw-r--r--src/shared/cplusplus/AST.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/shared/cplusplus/AST.cpp b/src/shared/cplusplus/AST.cpp
index db6a31fe2a..f47158ce40 100644
--- a/src/shared/cplusplus/AST.cpp
+++ b/src/shared/cplusplus/AST.cpp
@@ -1504,22 +1504,6 @@ unsigned SwitchStatementAST::lastToken() const
return switch_token + 1;
}
-
-unsigned TemplateArgumentListAST::firstToken() const
-{
- return template_argument->firstToken();
-}
-
-unsigned TemplateArgumentListAST::lastToken() const
-{
- for (const TemplateArgumentListAST *it = this; it; it = it->next) {
- if (! it->next && it->template_argument)
- return it->template_argument->lastToken();
- }
- return 0;
-}
-
-
unsigned TemplateDeclarationAST::firstToken() const
{
if (export_token)
@@ -1561,8 +1545,8 @@ unsigned TemplateIdAST::lastToken() const
return greater_token + 1;
for (TemplateArgumentListAST *it = template_arguments; it; it = it->next) {
- if (! it->next && it->template_argument)
- return it->template_argument->lastToken();
+ if (! it->next && it->value)
+ return it->value->lastToken();
}
if (less_token)