Commit 7c6c439c authored by Roberto Raggi's avatar Roberto Raggi

UsingDirectiveAST::lastToken().

parent fa0ef522
......@@ -2772,8 +2772,13 @@ unsigned UsingDirectiveAST::firstToken() const
unsigned UsingDirectiveAST::lastToken() const
{
assert(0 && "review me");
return semicolon_token + 1;
if (semicolon_token)
return semicolon_token + 1;
else if (name)
return name->lastToken();
else if (namespace_token)
return namespace_token + 1;
return using_token + 1;
}
void WhileStatementAST::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