third_party/google_input_tools/builder.py
def extract_dependencies(filename, providers, requirements):
  """Extracts provided and required namespaces for a file.

  Description:
    Updates maps for namespace providers and file prerequisites.

  Args:
    filename: Path of the file to process.
    providers: Mapping of namespace to filename that provides the namespace.
    requirements: Mapping of filename to a list of prerequisite namespaces.
  """

  p, r = process_file(filename)

  for name in p:
    providers[name] = filename
  for name in r:
    if filename not in requirements:
      requirements[filename] = []
    requirements[filename].append(name)
Extracts provided and required namespaces for a file.

  Description:
    Updates maps for namespace providers and file prerequisites.

  Args:
    filename: Path of the file to process.
    providers: Mapping of namespace to filename that provides the namespace.
    requirements: Mapping of filename to a list of prerequisite namespaces.
  
Extracts provided and required namespaces for a file.
Description:
Updates maps for namespace providers and file prerequisites.
Extracts provided and required namespaces for a file . Description : Updates maps for namespace providers and file prerequisites .
def extract_dependencies(filename, providers, requirements):
  p, r = process_file(filename)
  for name in p:
    providers[name] = filename
  for name in r:
    if filename not in requirements:
      requirements[filename] = []
    requirements[filename].append(name)
def extract_dependencies ( filename , providers , requirements ) : p , r = process_file ( filename ) for name in p : providers [ name ] = filename for name in r : if filename not in requirements : requirements [ filename ] = [ ] requirements [ filename ] . append ( name )
Extracts provided and required namespaces for a file.
Extracts provided and required namespaces for a file .
"""Extracts provided and required namespaces for a file.

  Description:
    Updates maps for namespace providers and file prerequisites.

  Args:
    filename: Path of the file to process.
    providers: Mapping of namespace to filename that provides the namespace.
    requirements: Mapping of filename to a list of prerequisite namespaces.
  """
filename
Path of the file to process.
Path of the file to process .
providers
Mapping of namespace to filename that provides the namespace.
Mapping of namespace to filename that provides the namespace .
requirements
Mapping of filename to a list of prerequisite namespaces.
Mapping of filename to a list of prerequisite namespaces .