Antlr.Runtime.BufferedTokenStream.Fetch C# (CSharp) Method

Fetch() protected method

protected Fetch ( int n ) : void
n int
return void
        protected virtual void Fetch(int n)
        {
            for (int i = 0; i < n; i++)
            {
                IToken t = TokenSource.NextToken();
                t.TokenIndex = _tokens.Count;
                _tokens.Add(t);
                if (t.Type == CharStreamConstants.EndOfFile)
                    break;
            }
        }