'Return the line number which generated the invocant node.'

def get_lineno(self):

    node = self
    while (not isinstance(node, Leaf)):
        if (not node.children):
            return
        node = node.children[0]
    return node.lineno
