def __next__(self):
while self.__i >= len(self.__queue):<EOL><INDENT>self.__queue.append(TokenWithPosition(next(self.__iterator), self.__i))<EOL><DEDENT>self.__i += <NUM_LIT:1><EOL>return self.__queue[self.__i-<NUM_LIT:1>]<EOL>
Implements next.