summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/AST.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2010-08-26 15:55:31 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2010-08-26 16:07:14 +0200
commit688d382ad947df8f4406d10846da0751839d61d1 (patch)
tree52c4f713e95bc9155cdd82c4cde4ae63116f1456 /src/shared/cplusplus/AST.cpp
parent4da21c612eddda05fe8e89f9e03c019097b7af5a (diff)
downloadqt-creator-688d382ad947df8f4406d10846da0751839d61d1.tar.gz
Some cleanup in the C++ AST.
Diffstat (limited to 'src/shared/cplusplus/AST.cpp')
-rw-r--r--src/shared/cplusplus/AST.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/shared/cplusplus/AST.cpp b/src/shared/cplusplus/AST.cpp
index 80137c3260..8430d0b1e3 100644
--- a/src/shared/cplusplus/AST.cpp
+++ b/src/shared/cplusplus/AST.cpp
@@ -1379,8 +1379,8 @@ unsigned FunctionDeclaratorAST::firstToken() const
{
if (lparen_token)
return lparen_token;
- if (parameters)
- if (unsigned candidate = parameters->firstToken())
+ if (parameter_declaration_clause)
+ if (unsigned candidate = parameter_declaration_clause->firstToken())
return candidate;
if (rparen_token)
return rparen_token;
@@ -1416,8 +1416,8 @@ unsigned FunctionDeclaratorAST::lastToken() const
return candidate;
if (rparen_token)
return rparen_token + 1;
- if (parameters)
- if (unsigned candidate = parameters->lastToken())
+ if (parameter_declaration_clause)
+ if (unsigned candidate = parameter_declaration_clause->lastToken())
return candidate;
if (lparen_token)
return lparen_token + 1;
@@ -3317,8 +3317,8 @@ unsigned QtPrivateSlotAST::firstToken() const
return dptr_rparen_token;
if (comma_token)
return comma_token;
- if (type_specifiers)
- if (unsigned candidate = type_specifiers->firstToken())
+ if (type_specifier_list)
+ if (unsigned candidate = type_specifier_list->firstToken())
return candidate;
if (declarator)
if (unsigned candidate = declarator->firstToken())
@@ -3336,8 +3336,8 @@ unsigned QtPrivateSlotAST::lastToken() const
if (declarator)
if (unsigned candidate = declarator->lastToken())
return candidate;
- if (type_specifiers)
- if (unsigned candidate = type_specifiers->lastToken())
+ if (type_specifier_list)
+ if (unsigned candidate = type_specifier_list->lastToken())
return candidate;
if (comma_token)
return comma_token + 1;
@@ -3367,8 +3367,8 @@ unsigned QtPropertyDeclarationAST::firstToken() const
if (property_name)
if (unsigned candidate = property_name->firstToken())
return candidate;
- if (property_declaration_items)
- if (unsigned candidate = property_declaration_items->firstToken())
+ if (property_declaration_item_list)
+ if (unsigned candidate = property_declaration_item_list->firstToken())
return candidate;
if (rparen_token)
return rparen_token;
@@ -3380,8 +3380,8 @@ unsigned QtPropertyDeclarationAST::lastToken() const
{
if (rparen_token)
return rparen_token + 1;
- if (property_declaration_items)
- if (unsigned candidate = property_declaration_items->lastToken())
+ if (property_declaration_item_list)
+ if (unsigned candidate = property_declaration_item_list->lastToken())
return candidate;
if (property_name)
if (unsigned candidate = property_name->lastToken())
@@ -3818,8 +3818,8 @@ unsigned TrailingReturnTypeAST::firstToken() const
if (attributes)
if (unsigned candidate = attributes->firstToken())
return candidate;
- if (type_specifiers)
- if (unsigned candidate = type_specifiers->firstToken())
+ if (type_specifier_list)
+ if (unsigned candidate = type_specifier_list->firstToken())
return candidate;
if (declarator)
if (unsigned candidate = declarator->firstToken())
@@ -3833,8 +3833,8 @@ unsigned TrailingReturnTypeAST::lastToken() const
if (declarator)
if (unsigned candidate = declarator->lastToken())
return candidate;
- if (type_specifiers)
- if (unsigned candidate = type_specifiers->lastToken())
+ if (type_specifier_list)
+ if (unsigned candidate = type_specifier_list->lastToken())
return candidate;
if (attributes)
if (unsigned candidate = attributes->lastToken())