parameters: (self)
return_statement: return self._set_vars + self.as_names
docstring: Get the names for the statement.
docstring_summary: Get the names for the statement.
docstring_tokens: Get the names for the statement .
function: def get_set_vars(self):
          """ Get the names for the statement. """
          if self._set_vars is None:
              self._set_vars = []
              def search_calls(calls):
                  for call in calls:
                      if isinstance(call, Array):
                          for stmt in call:
                              search_calls(stmt.get_commands())
                      elif isinstance(call, Call):
                          c = call
                          # Check if there's an execution in it, if so this is
                          # not a set_var.
                          is_execution = False
                          while c:
                              if Array.is_type(c.execution, Array.TUPLE):
                                  is_execution = True
                              c = c.next
                          if is_execution:
                              continue
                          self._set_vars.append(call.name)
  
              for calls, operation in self.assignment_details:
                  search_calls(calls)
  
              if not self.assignment_details and self._names_are_set_vars:
                  # In the case of Param, it's also a defining name without ``=``
                  search_calls(self.get_commands())
          return self._set_vars + self.as_names
function_tokens: def get_set_vars ( self ) : if self . _set_vars is None : self . _set_vars = [ ] def search_calls ( calls ) : for call in calls : if isinstance ( call , Array ) : for stmt in call : search_calls ( stmt . get_commands ( ) ) elif isinstance ( call , Call ) : c = call # Check if there's an execution in it, if so this is # not a set_var. is_execution = False while c : if Array . is_type ( c . execution , Array . TUPLE ) : is_execution = True c = c . next if is_execution : continue self . _set_vars . append ( call . name ) for calls , operation in self . assignment_details : search_calls ( calls ) if not self . assignment_details and self . _names_are_set_vars : # In the case of Param, it's also a defining name without ``=`` search_calls ( self . get_commands ( ) ) return self . _set_vars + self . as_names