forked from qt-creator/qt-creator
Moved startOffset/endOffset from Symbol to Scope.
This commit is contained in:
@@ -61,7 +61,9 @@ Scope::Scope(ScopedSymbol *owner)
|
||||
_allocatedSymbols(0),
|
||||
_symbolCount(-1),
|
||||
_hash(0),
|
||||
_hashSize(0)
|
||||
_hashSize(0),
|
||||
_startOffset(0),
|
||||
_endOffset(0)
|
||||
{ }
|
||||
|
||||
Scope::~Scope()
|
||||
@@ -333,4 +335,16 @@ Scope::iterator Scope::firstSymbol() const
|
||||
Scope::iterator Scope::lastSymbol() const
|
||||
{ return _symbols + _symbolCount + 1; }
|
||||
|
||||
unsigned Scope::startOffset() const
|
||||
{ return _startOffset; }
|
||||
|
||||
void Scope::setStartOffset(unsigned offset)
|
||||
{ _startOffset = offset; }
|
||||
|
||||
unsigned Scope::endOffset() const
|
||||
{ return _endOffset; }
|
||||
|
||||
void Scope::setEndOffset(unsigned offset)
|
||||
{ _endOffset = offset; }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user