(self)
return node.lineno
Return the line number which generated the invocant node.
Return the line number which generated the invocant node.
Return the line number which generated the invocant node .
def get_lineno(self):
        """Return the line number which generated the invocant node."""
        node = self
        while not isinstance(node, Leaf):
            if not node.children:
                return
            node = node.children[0]
        return node.lineno
def get_lineno ( self ) : node = self while not isinstance ( node , Leaf ) : if not node . children : return node = node . children [ 0 ] return node . lineno