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

UsingDirectiveAST::lastToken().

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