forked from qt-creator/qt-creator
Revert "Introduced a token cache for the C++ editor."
This reverts commit c2393df023.
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
#include "ExpressionUnderCursor.h"
|
||||
#include "SimpleLexer.h"
|
||||
#include "BackwardsScanner.h"
|
||||
#include "TokenCache.h"
|
||||
#include <Token.h>
|
||||
|
||||
#include <QTextCursor>
|
||||
@@ -38,8 +37,8 @@
|
||||
|
||||
using namespace CPlusPlus;
|
||||
|
||||
ExpressionUnderCursor::ExpressionUnderCursor(TokenCache *tokenCache)
|
||||
: _tokenCache(tokenCache), _jumpedComma(false)
|
||||
ExpressionUnderCursor::ExpressionUnderCursor()
|
||||
: _jumpedComma(false)
|
||||
{ }
|
||||
|
||||
ExpressionUnderCursor::~ExpressionUnderCursor()
|
||||
@@ -219,7 +218,7 @@ bool ExpressionUnderCursor::isAccessToken(const SimpleToken &tk)
|
||||
|
||||
QString ExpressionUnderCursor::operator()(const QTextCursor &cursor)
|
||||
{
|
||||
BackwardsScanner scanner(_tokenCache, cursor);
|
||||
BackwardsScanner scanner(cursor);
|
||||
|
||||
_jumpedComma = false;
|
||||
|
||||
@@ -233,7 +232,7 @@ QString ExpressionUnderCursor::operator()(const QTextCursor &cursor)
|
||||
|
||||
int ExpressionUnderCursor::startOfFunctionCall(const QTextCursor &cursor) const
|
||||
{
|
||||
BackwardsScanner scanner(_tokenCache, cursor);
|
||||
BackwardsScanner scanner(cursor);
|
||||
|
||||
int index = scanner.startToken();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user