Home | History | Annotate | Download | only in jinja2

Lines Matching refs:lineno

107     def attr(self, name, lineno=None):
113 self.attr('_my_attribute', lineno=lineno)
115 return nodes.ExtensionAttribute(self.identifier, name, lineno=lineno)
118 dyn_kwargs=None, lineno=None):
126 return nodes.Call(self.attr(name, lineno=lineno), args, kwargs,
127 dyn_args, dyn_kwargs, lineno=lineno)
217 lineno = next(parser.stream).lineno
237 name.value, name.lineno,
279 name.value, name.lineno,
298 parser.fail('pluralize without variables', lineno)
303 node.set_lineno(lineno)
397 node = nodes.ExprStmt(lineno=next(parser.stream).lineno)
409 return nodes.Break(lineno=token.lineno)
410 return nodes.Continue(lineno=token.lineno)
418 node = nodes.Scope(lineno=next(parser.stream).lineno)
421 lineno = parser.stream.current.lineno
427 assignments.append(nodes.Assign(target, expr, lineno=lineno))
439 node = nodes.ScopedEvalContextModifier(lineno=next(parser.stream).lineno)
471 For every string found this function yields a ``(lineno, function,
474 * ``lineno`` is the number of the line on which the string was found,
513 yield node.lineno, node.node.name, strings
544 def find_comments(self, lineno):
545 if not self.comment_tags or self.last_lineno > lineno:
548 if token_lineno > lineno:
578 :return: an iterator over ``(lineno, funcname, message, comments)`` tuples.
627 for lineno, func, message in extract_from_ast(node, keywords):
628 yield lineno, func, message, finder.find_comments(lineno)