A state that a {Resolution} can be in @attr [String] name the name of the current requirement @attr [Array] requirements currently unsatisfied requirements @attr [DependencyGraph] activated the graph of activated dependencies @attr [Object] requirement the current requirement @attr [Object] possibilities the possibilities to satisfy the current requirement @attr [Integer] depth the depth of the resolution @attr [Hash] conflicts unresolved conflicts, indexed by dependency name @attr [Array] unused_unwind_options unwinds for previous conflicts that weren't explored Direct Known Subclasses Molinillo::DependencyState(R, S) Molinillo::PossibilityState(R, S) Defined in: molinillo/state.cr Constructors .new(name : Nil | String, requirements : Array(R), activated : Molinillo::DependencyGraph(Molinillo::Resolver::Resolution::PossibilitySet(R, S) | S | Nil, R), requirement : R | Nil, possibilities : Array(Molinillo::Resolver::Resolution::PossibilitySet(R, S)), depth : Int32, conflicts : Hash(String, Molinillo::Resolver::Resolution::Conflict(R, S)), unused_unwind_options : Array(Molinillo::Resolver::Resolution::UnwindDetails(R, S))) Class Method Summary .empty Returns an empty resolution state @return [ResolutionState] an empty state Instance Method Summary #activated : DependencyGraph(Resolver::Resolution::PossibilitySet(R, S) | Nil | S, R) #activated=(activated : DependencyGraph(Resolver::Resolution::PossibilitySet(R, S) | Nil | S, R)) #conflicts : Hash(String, Resolver::Resolution::Conflict(R, S)) #conflicts=(conflicts : Hash(String, Resolver::Resolution::Conflict(R, S))) #depth : Int32 #depth=(depth : Int32) #name : String | Nil #name=(name : String | Nil) #possibilities : Array(Resolver::Resolution::PossibilitySet(R, S)) #possibilities=(possibilities : Array(Resolver::Resolution::PossibilitySet(R, S))) #requirement : R | Nil #requirement=(requirement : R | Nil) #requirements : Array(R) #requirements=(requirements : Array(R)) #unused_unwind_options : Array(Resolver::Resolution::UnwindDetails(R, S)) #unused_unwind_options=(unused_unwind_options : Array(Resolver::Resolution::UnwindDetails(R, S))) Constructor Detail def self.new(name : Nil | String, requirements : Array(R), activated : Molinillo::DependencyGraph(Molinillo::Resolver::Resolution::PossibilitySet(R, S) | S | Nil, R), requirement : R | Nil, possibilities : Array(Molinillo::Resolver::Resolution::PossibilitySet(R, S)), depth : Int32, conflicts : Hash(String, Molinillo::Resolver::Resolution::Conflict(R, S)), unused_unwind_options : Array(Molinillo::Resolver::Resolution::UnwindDetails(R, S))) # [View source] Class Method Detail def self.empty # Returns an empty resolution state @return [ResolutionState] an empty state [View source] Instance Method Detail def activated : DependencyGraph(Resolver::Resolution::PossibilitySet(R, S) | Nil | S, R) # [View source] def activated=(activated : DependencyGraph(Resolver::Resolution::PossibilitySet(R, S) | Nil | S, R)) # [View source] def conflicts : Hash(String, Resolver::Resolution::Conflict(R, S)) # [View source] def conflicts=(conflicts : Hash(String, Resolver::Resolution::Conflict(R, S))) # [View source] def depth : Int32 # [View source] def depth=(depth : Int32) # [View source] def name : String | Nil # [View source] def name=(name : String | Nil) # [View source] def possibilities : Array(Resolver::Resolution::PossibilitySet(R, S)) # [View source] def possibilities=(possibilities : Array(Resolver::Resolution::PossibilitySet(R, S))) # [View source] def requirement : R | Nil # [View source] def requirement=(requirement : R | Nil) # [View source] def requirements : Array(R) # [View source] def requirements=(requirements : Array(R)) # [View source] def unused_unwind_options : Array(Resolver::Resolution::UnwindDetails(R, S)) # [View source] def unused_unwind_options=(unused_unwind_options : Array(Resolver::Resolution::UnwindDetails(R, S))) # [View source]
Returns an empty resolution state @return [ResolutionState] an empty state