forked from qt-creator/qt-creator
Use Token::begin() instead of the member variable `offset'.
This commit is contained in:
@@ -2079,7 +2079,7 @@ unsigned Bind::calculateScopeStart(ObjCClassDeclarationAST *ast) const
|
|||||||
if (unsigned pos = ast->class_name->lastToken())
|
if (unsigned pos = ast->class_name->lastToken())
|
||||||
return tokenAt(pos - 1).end();
|
return tokenAt(pos - 1).end();
|
||||||
|
|
||||||
return tokenAt(ast->firstToken()).offset;
|
return tokenAt(ast->firstToken()).begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Bind::visit(ObjCClassDeclarationAST *ast)
|
bool Bind::visit(ObjCClassDeclarationAST *ast)
|
||||||
@@ -2155,7 +2155,7 @@ unsigned Bind::calculateScopeStart(ObjCProtocolDeclarationAST *ast) const
|
|||||||
if (unsigned pos = ast->name->lastToken())
|
if (unsigned pos = ast->name->lastToken())
|
||||||
return tokenAt(pos - 1).end();
|
return tokenAt(pos - 1).end();
|
||||||
|
|
||||||
return tokenAt(ast->firstToken()).offset;
|
return tokenAt(ast->firstToken()).begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Bind::visit(ObjCProtocolDeclarationAST *ast)
|
bool Bind::visit(ObjCProtocolDeclarationAST *ast)
|
||||||
|
Reference in New Issue
Block a user