Commit 72c806ab authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Use Token::begin() instead of the member variable `offset'.

parent e0544e8d
......@@ -2079,7 +2079,7 @@ unsigned Bind::calculateScopeStart(ObjCClassDeclarationAST *ast) const
if (unsigned pos = ast->class_name->lastToken())
return tokenAt(pos - 1).end();
return tokenAt(ast->firstToken()).offset;
return tokenAt(ast->firstToken()).begin();
}
bool Bind::visit(ObjCClassDeclarationAST *ast)
......@@ -2155,7 +2155,7 @@ unsigned Bind::calculateScopeStart(ObjCProtocolDeclarationAST *ast) const
if (unsigned pos = ast->name->lastToken())
return tokenAt(pos - 1).end();
return tokenAt(ast->firstToken()).offset;
return tokenAt(ast->firstToken()).begin();
}
bool Bind::visit(ObjCProtocolDeclarationAST *ast)
......
Markdown is supported
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