diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-03-31 13:56:28 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-03-31 13:56:28 +0200 |
commit | 8f84f81e6d319404ef549726c62fdbef1d699df0 (patch) | |
tree | cc741aefc751704c881ed196f17e2d5bf40a7a2d /src/shared/cplusplus/Symbol.h | |
parent | 3b04247689df6bb39c24497adda228ba93866dea (diff) | |
download | qt-creator-8f84f81e6d319404ef549726c62fdbef1d699df0.tar.gz |
Introduced startOffset(), endOffset(), getPosition(), getStartPosition(), and getEndPosition().
Diffstat (limited to 'src/shared/cplusplus/Symbol.h')
-rw-r--r-- | src/shared/cplusplus/Symbol.h | 12 |
1 files changed, 12 insertions, 0 deletions
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; |