diff options
| author | Erik Verbruggen <[email protected]> | 2010-06-07 13:06:21 +0200 |
|---|---|---|
| committer | Erik Verbruggen <[email protected]> | 2010-06-14 10:10:05 +0200 |
| commit | e42ca194c53b8286447c7750feb8c7497c88e698 (patch) | |
| tree | ab99d8feb411815c51f9d9a2b119aedd1a41244f /src/libs/cplusplus/SimpleLexer.h | |
| parent | 2e1001621042a5704e504821fd5677733ffd9167 (diff) | |
Introduced token caching to prevent repetetive tokenizing.
Also removed TokenUnderCursor as it's functionality is in the token cache.
Reviewed-by: ckamm
Diffstat (limited to 'src/libs/cplusplus/SimpleLexer.h')
| -rw-r--r-- | src/libs/cplusplus/SimpleLexer.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libs/cplusplus/SimpleLexer.h b/src/libs/cplusplus/SimpleLexer.h index 7b55e8f43ae..8b5ea26c99c 100644 --- a/src/libs/cplusplus/SimpleLexer.h +++ b/src/libs/cplusplus/SimpleLexer.h @@ -42,7 +42,7 @@ class Token; class CPLUSPLUS_EXPORT SimpleToken { public: - SimpleToken(const Token &token, const QStringRef &text); + SimpleToken(const Token &token); SimpleToken() : _kind(0) @@ -66,9 +66,6 @@ public: inline int end() const { return _position + _length; } - inline QStringRef text() const - { return _text; } - inline bool followsNewline() const { return f._newline; } @@ -91,10 +88,6 @@ public: inline void setPosition(int position) { _position = position; } - // internal - inline void setText(const QStringRef &text) - { _text = text; } - public: short _kind; union { @@ -109,7 +102,6 @@ public: int _position; int _length; - QStringRef _text; friend class SimpleLexer; }; |
