Antlr.Runtime.LegacyCommonTokenStream.SkipOffTokenChannels C# (CSharp) Method

SkipOffTokenChannels() protected method

Given a starting index, return the index of the first on-channel token.
protected SkipOffTokenChannels ( int i ) : int
i int
return int
        protected virtual int SkipOffTokenChannels( int i )
        {
            int n = tokens.Count;
            while ( i < n && ( (IToken)tokens[i] ).Channel != channel )
            {
                i++;
            }
            return i;
        }