From c4b03574abf593db782b559c2122bc6f33eac62e Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Fri, 16 Jul 2010 16:01:41 +0200 Subject: Moved startOffset/endOffset from Symbol to Scope. --- src/shared/cplusplus/Scope.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/shared/cplusplus/Scope.cpp') diff --git a/src/shared/cplusplus/Scope.cpp b/src/shared/cplusplus/Scope.cpp index 22eddedd41..de0f147eb3 100644 --- a/src/shared/cplusplus/Scope.cpp +++ b/src/shared/cplusplus/Scope.cpp @@ -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; } + -- cgit v1.2.1