Quickfix: Be more efficient when looking up token start/end positions.

This commit is contained in:
Christian Kamm
2009-11-26 15:00:54 +01:00
parent 43129a2928
commit 4c427aec82
2 changed files with 22 additions and 4 deletions

View File

@@ -92,6 +92,7 @@ protected:
int startOf(const CPlusPlus::AST *ast) const;
int endOf(unsigned index) const;
int endOf(const CPlusPlus::AST *ast) const;
void startAndEndOf(unsigned index, int *start, int *end) const;
bool isCursorOn(unsigned tokenIndex) const;
bool isCursorOn(const CPlusPlus::AST *ast) const;