forked from qt-creator/qt-creator
Introduced token caching to prevent repetetive tokenizing.
Also removed TokenUnderCursor as it's functionality is in the token cache. Reviewed-by: ckamm
This commit is contained in:
@@ -43,11 +43,12 @@ namespace CPlusPlus {
|
||||
|
||||
class BackwardsScanner;
|
||||
class SimpleToken;
|
||||
class TokenCache;
|
||||
|
||||
class CPLUSPLUS_EXPORT ExpressionUnderCursor
|
||||
{
|
||||
public:
|
||||
ExpressionUnderCursor();
|
||||
ExpressionUnderCursor(TokenCache *tokenCache);
|
||||
~ExpressionUnderCursor();
|
||||
|
||||
QString operator()(const QTextCursor &cursor);
|
||||
@@ -59,6 +60,7 @@ private:
|
||||
bool isAccessToken(const SimpleToken &tk);
|
||||
|
||||
private:
|
||||
TokenCache *_tokenCache;
|
||||
bool _jumpedComma;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user