Added helper method QmlJSIndenter::tokenText().

This commit is contained in:
Roberto Raggi
2010-01-19 12:58:55 +01:00
parent a5df2e7b24
commit 6b6b827d9b
2 changed files with 6 additions and 0 deletions

View File

@@ -321,6 +321,11 @@ Token QmlJSIndenter::lastToken() const
return Token();
}
QStringRef QmlJSIndenter::tokenText(const Token &token) const
{
return yyLinizerState.line.midRef(token.offset, token.length);
}
/*
Saves and restores the state of the global linizer. This enables
backtracking.