function gather_dependencies (scope) {
  var children_deps = get_children_deps(scope);
  var scope_dep_urls = get_scope_dependencies(scope).map(function (dep) {
    return dep.get_url();
  });

  for (var url in children_deps) {
    if (scope_dep_urls.indexOf(url) === -1) {
      var dep = children_deps[url];
      dep.clone([], scope);
    }
  }
}
/**
 * @param {Scope} scope The shard root to assign all dependencies to
 */
@param {Scope} scope The shard root to assign all dependencies to
@param { Scope } scope The shard root to assign all dependencies to
function gather_dependencies (scope) {
  var children_deps = get_children_deps(scope);
  var scope_dep_urls = get_scope_dependencies(scope).map(function (dep) {
    return dep.get_url();
  });
  for (var url in children_deps) {
    if (scope_dep_urls.indexOf(url) === -1) {
      var dep = children_deps[url];
      dep.clone([], scope);
    }
  }
}
function gather_dependencies ( scope ) { var children_deps = get_children_deps ( scope ) ; var scope_dep_urls = get_scope_dependencies ( scope ) . map ( function ( dep ) { return dep . get_url ( ) ; } ) ; for ( var url in children_deps ) { if ( scope_dep_urls . indexOf ( url ) === - 1 ) { var dep = children_deps [ url ] ; dep . clone ( [ ] , scope ) ; } } }
@param {Scope} scope The shard root to assign all dependencies to
@param { Scope } scope The shard root to assign all dependencies to