public LexerToken this[int index, bool checkActive]
{
get
{
System.Diagnostics.Debug.Assert(index < LookAheadCount, "Lexer look ahead attempt exceeds maximum");
LexerToken token = _tokens[(_currentIndex + index) % LookAheadCount];
if (checkActive && (token.Type == TokenType.Unknown))
throw new LexerException(LexerException.Codes.NoActiveToken);
return token;
}
}