Ancestry.QueryProcessor.Parse.Lexer.PeekToken C# (CSharp) Method

PeekToken() public method

Gets the symbol the specified number of tokens ahead without advancing the current token.
If the token is not a symbol, returns an empty string.
public PeekToken ( int count ) : LexerToken
count int
return LexerToken
        public LexerToken PeekToken(int count)
        {
            LexerToken token = this[count];
            if (token.Type == TokenType.Error)
                throw token.Error;
            return token;
        }