From 847f7f9cd10b6c1e6b5a89545b42bf0f08f6fd1c Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Fri, 2 Jan 2009 17:49:33 +0100 Subject: [PATCH] Implemented DestructorNameAST::lastToken(). --- shared/cplusplus/AST.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shared/cplusplus/AST.cpp b/shared/cplusplus/AST.cpp index 5bfecfc9dae..46c14159f9f 100644 --- a/shared/cplusplus/AST.cpp +++ b/shared/cplusplus/AST.cpp @@ -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)