Lines Matching refs:stream
206 useful for extensions that filter a stream.
296 """The iterator for tokenstreams. Iterate over the stream
300 def __init__(self, stream: "TokenStream") -> None:
301 self.stream = stream
307 token = self.stream.current
310 self.stream.close()
313 next(self.stream)
318 """A token stream is an iterable that yields :class:`Token`\\s. The
345 """Are we at the end of the stream?"""
349 """Push a token back to the stream."""
396 """Close the stream."""
609 """Calls tokeniter + tokenize and wraps it in a token stream."""
610 stream = self.tokeniter(source, name, filename, state)
611 return TokenStream(self.wrap(stream, name, filename), name, filename)
615 stream: t.Iterable[t.Tuple[int, str, str]],
619 """This is called with the stream as returned by `tokenize` and wraps
622 for lineno, token, value_str in stream: