code: def blockstart_tolineno(self):
          
          if self.name:
              return self.name.tolineno
          if self.type:
              return self.type.tolineno
          return self.lineno
docs: The line on which the beginning of this block ends.
  
          :type: int