Implemented LabeledStatementAST::lastToken().

This commit is contained in:
Roberto Raggi
2009-01-05 10:27:49 +01:00
parent 5e40f21183
commit 77c16d1317

View File

@@ -1583,10 +1583,11 @@ unsigned LabeledStatementAST::firstToken() const
unsigned LabeledStatementAST::lastToken() const
{
assert(0 && "review me");
if (statement)
return statement->lastToken();
return colon_token + 1;
else if (colon_token)
return colon_token + 1;
return label_token + 1;
}
void LinkageBodyAST::accept0(ASTVisitor *visitor)