Commit c1a2afce authored by Roberto Raggi's avatar Roberto Raggi

TypeIdAST::lastToken().

parent 2fb5e630
......@@ -2624,10 +2624,15 @@ unsigned TypeIdAST::firstToken() const
unsigned TypeIdAST::lastToken() const
{
assert(0 && "review me");
if (declarator)
return declarator->lastToken();
return type_specifier->lastToken();
for (SpecifierAST *it = type_specifier; it; it = it->next) {
if (! it->next)
return it->lastToken();
}
return 0;
}
void TypeidExpressionAST::accept0(ASTVisitor *visitor)
......
Markdown is supported
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