Lines Matching refs:stream
89 def filter_stream(self, stream):
99 return stream
103 parser as first argument. The token the parser stream is pointing at
219 lineno = next(parser.stream).lineno
229 while parser.stream.current.type != 'block_end':
231 parser.stream.expect('comma')
234 if parser.stream.skip_if('colon'):
237 name = parser.stream.expect('name')
244 if parser.stream.current.type == 'assign':
245 next(parser.stream)
263 parser.stream.expect('block_end')
278 if parser.stream.current.test('name:pluralize'):
280 next(parser.stream)
281 if parser.stream.current.type != 'block_end':
282 name = parser.stream.expect('name')
289 parser.stream.expect('block_end')
291 next(parser.stream)
294 next(parser.stream)
330 if parser.stream.current.type == 'data':
331 buf.append(parser.stream.current.value.replace('%', '%%'))
332 next(parser.stream)
333 elif parser.stream.current.type == 'variable_begin':
334 next(parser.stream)
335 name = parser.stream.expect('name').value
338 parser.stream.expect('variable_end')
339 elif parser.stream.current.type == 'block_begin':
340 next(parser.stream)
341 if parser.stream.current.test('name:endtrans'):
343 elif parser.stream.current.test('name:pluralize'):
350 elif parser.stream.eos:
413 node = nodes.ExprStmt(lineno=next(parser.stream).lineno)
423 token = next(parser.stream)
506 """Helper class to find comments in a token stream. Can only