code: def go_to_line(self, line=None):
          
          if line is not None:
              # When this method is called from the flileswitcher, a line
              # number is specified, so there is no need for the dialog.
              self.get_current_editor().go_to_line(line)
          else:
              if self.data:
                  self.get_current_editor().exec_gotolinedialog()
docs: Go to line dialog