CodeBox.CodeLexer.Token.Next C# (CSharp) 메소드

Next() 공개 메소드

public Next ( List list ) : Token
list List
리턴 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];
        }