Commit 2788d772 authored by Roberto Raggi's avatar Roberto Raggi

Fixes: Implementation of NewExpressionAST::lastToken()

parent 3666883f
......@@ -1178,7 +1178,7 @@ unsigned DeclaratorListAST::lastToken() const
{
for (const DeclaratorListAST *it = this; it; it = it->next) {
if (! it->next)
return it->lastToken();
return it->declarator->lastToken();
}
return 0;
}
......
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