Implemented DestructorNameAST::lastToken().

This commit is contained in:
Roberto Raggi
2009-01-02 17:49:33 +01:00
parent f32c63abd2
commit 847f7f9cd1

View File

@@ -1165,8 +1165,9 @@ unsigned DestructorNameAST::firstToken() const
unsigned DestructorNameAST::lastToken() const
{
assert(0 && "review me");
return identifier_token + 1;
if (identifier_token)
return identifier_token + 1;
return tilde_token + 1;
}
void DoStatementAST::accept0(ASTVisitor *visitor)