parameters: (require, search_hash, result_list, seen_list)
docstring: Takes a given requirement and resolves all of the dependencies for it.
  
    Description:
      A given requirement may require other dependencies.  This method
      recursively resolves all dependencies for the given requirement.
  
    Raises:
      Exception: when require does not exist in the search_hash.
  
    Args:
      require: the namespace to resolve dependencies for.
      search_hash: the data structure used for resolving dependencies.
      result_list: a list of filenames that have been calculated as dependencies.
        This variable is the output for this function.
      seen_list: a list of filenames that have been 'seen'.  This is required
        for the dependency->dependant ordering.
docstring_summary: Takes a given requirement and resolves all of the dependencies for it.
docstring_tokens: Takes a given requirement and resolves all of the dependencies for it .
function: def ResolveDependencies(require, search_hash, result_list, seen_list):
    """Takes a given requirement and resolves all of the dependencies for it.
  
    Description:
      A given requirement may require other dependencies.  This method
      recursively resolves all dependencies for the given requirement.
  
    Raises:
      Exception: when require does not exist in the search_hash.
  
    Args:
      require: the namespace to resolve dependencies for.
      search_hash: the data structure used for resolving dependencies.
      result_list: a list of filenames that have been calculated as dependencies.
        This variable is the output for this function.
      seen_list: a list of filenames that have been 'seen'.  This is required
        for the dependency->dependant ordering.
    """
    if require not in search_hash:
      raise Exception('Missing provider for (%s)' % require)
  
    dep = search_hash[require]
    if not dep.filename in seen_list:
      seen_list.append(dep.filename)
      for sub_require in dep.requires:
        ResolveDependencies(sub_require, search_hash, result_list, seen_list)
      result_list.append(dep.filename)
function_tokens: def ResolveDependencies ( require , search_hash , result_list , seen_list ) : if require not in search_hash : raise Exception ( 'Missing provider for (%s)' % require ) dep = search_hash [ require ] if not dep . filename in seen_list : seen_list . append ( dep . filename ) for sub_require in dep . requires : ResolveDependencies ( sub_require , search_hash , result_list , seen_list ) result_list . append ( dep . filename )