The only Scope that set the end offset to *before* the last token
was ObjCClassDeclaration.
Change-Id: Icbdb5bcdd72d96087ac586ad51510fed74a633eb
Reviewed-on: http://codereview.qt.nokia.com/2820
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
_scope->addMember(klass);
klass->setStartOffset(calculateScopeStart(ast));
- klass->setEndOffset(tokenAt(ast->lastToken() - 1).begin());
+ klass->setEndOffset(tokenAt(ast->lastToken() - 1).end());
if (ast->interface_token)
klass->setInterface(true);
unsigned endLine, endColumn;
_unit->getPosition(scope->endOffset(), &endLine, &endColumn);
- if (_line < endLine || (_line == endLine && _column <= endColumn))
+ if (_line < endLine || (_line == endLine && _column < endColumn))
_scope = scope;
}
}