Commit 77c16d13 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Implemented LabeledStatementAST::lastToken().

parent 5e40f211
......@@ -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)
......
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