public int PeekInLexerState(int lexerStateIndex, int lookAhead)
{
CodeContract.RequiresArgumentInRange(lookAhead > 0, "lookAhead", "The lookAhead must be greater than zero");
CodeContract.RequiresArgumentInRange(lexerStateIndex >= 0 && lexerStateIndex < ScannerInfo.LexerStateCount, "lexerStateIndex", "Invalid lexer state index");
Lexeme lookAheadLexeme = PeekLexeme(lookAhead);
return(lookAheadLexeme.GetTokenIndex(lexerStateIndex));
}