Lines Matching refs:lineno
109 def attr(self, name, lineno=None):
115 self.attr('_my_attribute', lineno=lineno)
117 return nodes.ExtensionAttribute(self.identifier, name, lineno=lineno)
120 dyn_kwargs=None, lineno=None):
128 return nodes.Call(self.attr(name, lineno=lineno), args, kwargs,
129 dyn_args, dyn_kwargs, lineno=lineno)
219 lineno = next(parser.stream).lineno
240 name.value, name.lineno,
285 name.value, name.lineno,
304 parser.fail('pluralize without variables', lineno)
316 node.set_lineno(lineno)
413 node = nodes.ExprStmt(lineno=next(parser.stream).lineno)
425 return nodes.Break(lineno=token.lineno)
426 return nodes.Continue(lineno=token.lineno)
460 For every string found this function yields a ``(lineno, function,
463 * ``lineno`` is the number of the line on which the string was found,
502 yield node.lineno, node.node.name, strings
533 def find_comments(self, lineno):
534 if not self.comment_tags or self.last_lineno > lineno:
537 if token_lineno > lineno:
567 :return: an iterator over ``(lineno, funcname, message, comments)`` tuples.
618 for lineno, func, message in extract_from_ast(node, keywords):
619 yield lineno, func, message, finder.find_comments(lineno)