From 8f84f81e6d319404ef549726c62fdbef1d699df0 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Tue, 31 Mar 2009 13:56:28 +0200 Subject: Introduced startOffset(), endOffset(), getPosition(), getStartPosition(), and getEndPosition(). --- src/shared/cplusplus/Symbol.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/shared/cplusplus/Symbol.h') diff --git a/src/shared/cplusplus/Symbol.h b/src/shared/cplusplus/Symbol.h index d7c70c38ae..ac8f0b11ca 100644 --- a/src/shared/cplusplus/Symbol.h +++ b/src/shared/cplusplus/Symbol.h @@ -109,6 +109,16 @@ public: /// Returns this Symbol's file name length. unsigned fileNameLength() const; + unsigned startOffset() const; + void setStartOffset(unsigned offset); + + unsigned endOffset() const; + void setEndOffset(unsigned offset); + + void getPosition(unsigned *line, unsigned *column = 0, StringLiteral **fileId = 0); + void getStartPosition(unsigned *line, unsigned *column = 0, StringLiteral **fileId = 0); + void getEndPosition(unsigned *line, unsigned *column = 0, StringLiteral **fileId = 0); + /// Returns this Symbol's name. Name *name() const; @@ -250,6 +260,8 @@ private: Control *_control; unsigned _sourceLocation; unsigned _sourceOffset; + unsigned _startOffset; + unsigned _endOffset; Name *_name; unsigned _hashCode; int _storage; -- cgit v1.2.1