code: def tolineno(self):
          
          if not self._astroid_fields:
              # can't have children
              lastchild = None
          else:
              lastchild = self.last_child()
          if lastchild is None:
              return self.fromlineno
  
          return lastchild.tolineno
docs: The last line that this node appears on in the source code.
  
          :type: int or None