class Bundler::Resolver::Base

def initialize(source_requirements, dependencies, base, platforms, options)

def initialize(source_requirements, dependencies, base, platforms, options)
  @source_requirements = source_requirements
  @base = base
  @packages = Hash.new do |hash, name|
    hash[name] = Package.new(name, platforms, **options)
  end
  @requirements = dependencies.map do |dep|
    dep_platforms = dep.gem_platforms(platforms)
    # Dependencies scoped to external platforms are ignored
    next if dep_platforms.empty?
    name = dep.name
    @packages[name] = Package.new(name, dep_platforms, **options.merge(dependency: dep))
    dep
  end.compact
end