CodeBox.CodeLexer.Token.Next C# (CSharp) Method

Next() public method

public Next ( List list ) : Token
list List
return Token
        public Token Next(List<Token> list)
        {
            int index = Index(list);

            if (index >= list.Count - 1)
                return new Token(TokenType.EOF, "", new List<Index>());

            return list[index + 1];
        }