Commit bf554cb4 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Implemented NestedDeclaratorAST::lastToken().

parent ae49c6b4
......@@ -1769,8 +1769,11 @@ unsigned NestedDeclaratorAST::firstToken() const
unsigned NestedDeclaratorAST::lastToken() const
{
assert(0 && "review me");
return rparen_token + 1;
if (rparen_token)
return rparen_token + 1;
else if (declarator)
return declarator->lastToken();
return lparen_token + 1;
}
void NestedExpressionAST::accept0(ASTVisitor *visitor)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment