Moved startOffset/endOffset from Symbol to Scope.

This commit is contained in:
Erik Verbruggen
2010-07-16 16:01:41 +02:00
parent 3bcfa87b90
commit c4b03574ab
7 changed files with 49 additions and 38 deletions

View File

@@ -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; }