VBF.Compilers.Scanners.Scanner.PeekInLexerState C# (CSharp) Method

PeekInLexerState() public method

public PeekInLexerState ( int lexerStateIndex, int lookAhead ) : int
lexerStateIndex int
lookAhead int
return int
        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);
        }