third_party/google-closure-library/closure/bin/build/depswriter.py
def _GetDepsLine(path, js_source):
  """Get a deps.js file string for a source."""

  provides = _ToJsSrc(sorted(js_source.provides))
  requires = _ToJsSrc(sorted(js_source.requires))
  module = "{'module': 'goog'}" if js_source.is_goog_module else '{}'

  return 'goog.addDependency(\'%s\', %s, %s, %s);\n' % (
      path, provides, requires, module)
Get a deps.js file string for a source.
Get a deps.js file string for a source.
Get a deps . js file string for a source .
def _GetDepsLine(path, js_source):
  provides = _ToJsSrc(sorted(js_source.provides))
  requires = _ToJsSrc(sorted(js_source.requires))
  module = "{'module': 'goog'}" if js_source.is_goog_module else '{}'
  return 'goog.addDependency(\'%s\', %s, %s, %s);\n' % (
      path, provides, requires, module)
def _GetDepsLine ( path , js_source ) : provides = _ToJsSrc ( sorted ( js_source . provides ) ) requires = _ToJsSrc ( sorted ( js_source . requires ) ) module = "{'module': 'goog'}" if js_source . is_goog_module else '{}' return 'goog.addDependency(\'%s\', %s, %s, %s);\n' % ( path , provides , requires , module )
Get a deps.js file string for a source.
Get a deps . js file string for a source .
"""Get a deps.js file string for a source."""
path
js_source