Lines Matching refs:start
245 #if false // why is this different from GetTokens(start, count) ?
247 /// Get all tokens from start..(start+count-1) inclusively
249 public virtual List<IToken> Get(int start, int count)
251 if (start < 0)
252 throw new ArgumentOutOfRangeException("start");
255 if (start + count >= _tokens.Count)
322 public virtual List<IToken> GetTokens(int start, int stop)
324 return GetTokens(start, stop, default(BitSet));
327 /** Given a start and stop index, return a List of all tokens in
331 public virtual List<IToken> GetTokens(int start, int stop, BitSet types)
337 if (start < 0)
338 start = 0;
339 if (start > stop)
342 // list = tokens[start:stop]:{Token t, t.getType() in types}
344 for (int i = start; i <= stop; i++)
359 public virtual List<IToken> GetTokens(int start, int stop, IEnumerable<int> types)
361 return GetTokens(start, stop, new BitSet(types));
364 public virtual List<IToken> GetTokens(int start, int stop, int ttype)
366 return GetTokens(start, stop, BitSet.Of(ttype));
378 public virtual string ToString(int start, int stop)
380 if (start < 0 || stop < 0)
388 for (int i = start; i <= stop; i++)
399 public virtual string ToString(IToken start, IToken stop)
401 if (start != null && stop != null)
403 return ToString(start.TokenIndex, stop.TokenIndex);