Home | History | Annotate | Download | only in jinja2

Lines Matching full:stream

84     def filter_stream(self, stream):
94 return stream
98 parser as first argument. The token the parser stream is pointing at
214 lineno = next(parser.stream).lineno
222 while parser.stream.current.type != 'block_end':
224 parser.stream.expect('comma')
227 if parser.stream.skip_if('colon'):
230 name = parser.stream.expect('name')
237 if parser.stream.current.type == 'assign':
238 next(parser.stream)
247 parser.stream.expect('block_end')
262 if parser.stream.current.test('name:pluralize'):
264 next(parser.stream)
265 if parser.stream.current.type != 'block_end':
266 name = parser.stream.expect('name')
273 parser.stream.expect('block_end')
275 next(parser.stream)
278 next(parser.stream)
301 if parser.stream.current.type == 'data':
302 buf.append(parser.stream.current.value.replace('%', '%%'))
303 next(parser.stream)
304 elif parser.stream.current.type == 'variable_begin':
305 next(parser.stream)
306 name = parser.stream.expect('name').value
309 parser.stream.expect('variable_end')
310 elif parser.stream.current.type == 'block_begin':
311 next(parser.stream)
312 if parser.stream.current.test('name:endtrans'):
314 elif parser.stream.current.test('name:pluralize'):
321 elif parser.stream.eos:
384 node = nodes.ExprStmt(lineno=next(parser.stream).lineno)
394 token = next(parser.stream)
405 node = nodes.Scope(lineno=next(parser.stream).lineno)
407 while parser.stream.current.type != 'block_end':
408 lineno = parser.stream.current.lineno
410 parser.stream.expect('comma')
412 parser.stream.expect('assign')
426 node = nodes.ScopedEvalContextModifier(lineno=next(parser.stream).lineno)
504 """Helper class to find comments in a token stream. Can only