parameters: (stmt, seek_name=None)
return_statement: return set(result)
docstring: The starting point of the completion. A statement always owns a call list,
      which are the calls, that a statement does.
      In case multiple names are defined in the statement, `seek_name` returns
      the result for this name.
  
      :param stmt: A `pr.Statement`.
      :param seek_name: A string.
docstring_summary: The starting point of the completion. A statement always owns a call list,
      which are the calls, that a statement does.
      In case multiple names are defined in the statement, `seek_name` returns
      the result for this name.
docstring_tokens: The starting point of the completion . A statement always owns a call list which are the calls that a statement does . In case multiple names are defined in the statement seek_name returns the result for this name .
function: def follow_statement(stmt, seek_name=None):
      """
      The starting point of the completion. A statement always owns a call list,
      which are the calls, that a statement does.
      In case multiple names are defined in the statement, `seek_name` returns
      the result for this name.
  
      :param stmt: A `pr.Statement`.
      :param seek_name: A string.
      """
      debug.dbg('follow_stmt %s (%s)' % (stmt, seek_name))
      commands = stmt.get_commands()
      debug.dbg('calls: %s' % commands)
  
      result = follow_call_list(commands)
  
      # Assignment checking is only important if the statement defines multiple
      # variables.
      if len(stmt.get_set_vars()) > 1 and seek_name and stmt.assignment_details:
          new_result = []
          for ass_commands, op in stmt.assignment_details:
              new_result += find_assignments(ass_commands[0], result, seek_name)
          result = new_result
      return set(result)
function_tokens: def follow_statement ( stmt , seek_name = None ) : debug . dbg ( 'follow_stmt %s (%s)' % ( stmt , seek_name ) ) commands = stmt . get_commands ( ) debug . dbg ( 'calls: %s' % commands ) result = follow_call_list ( commands ) # Assignment checking is only important if the statement defines multiple # variables. if len ( stmt . get_set_vars ( ) ) > 1 and seek_name and stmt . assignment_details : new_result = [ ] for ass_commands , op in stmt . assignment_details : new_result += find_assignments ( ass_commands [ 0 ] , result , seek_name ) result = new_result return set ( result )