Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
ce6bbe65
Commit
ce6bbe65
authored
Jan 05, 2009
by
Roberto Raggi
Browse files
Implemented NestedExpressionAST::lastToken()
parent
f87c952c
Changes
1
Hide whitespace changes
Inline
Side-by-side
shared/cplusplus/AST.cpp
View file @
ce6bbe65
...
...
@@ -1790,8 +1790,11 @@ unsigned NestedExpressionAST::firstToken() const
unsigned
NestedExpressionAST
::
lastToken
()
const
{
assert
(
0
&&
"review me"
);
return
rparen_token
+
1
;
if
(
rparen_token
)
return
rparen_token
+
1
;
else
if
(
expression
)
return
expression
->
lastToken
();
return
lparen_token
+
1
;
}
void
NestedNameSpecifierAST
::
accept0
(
ASTVisitor
*
visitor
)
...
...
@@ -1809,8 +1812,9 @@ unsigned NestedNameSpecifierAST::firstToken() const
unsigned
NestedNameSpecifierAST
::
lastToken
()
const
{
assert
(
0
&&
"review me"
);
return
scope_token
+
1
;
if
(
scope_token
)
return
scope_token
+
1
;
return
class_or_namespace_name
->
lastToken
();
}
void
NewDeclaratorAST
::
accept0
(
ASTVisitor
*
visitor
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment