struct Novika::Resolver::ResolutionSet
- Novika::Resolver::ResolutionSet
- Struct
- Value
- Object
Overview
Represents an ordered set of Resolution
objects.
Defined in:
novika/resolver.crConstructors
Instance Method Summary
-
#all_come_from_same?(& : RunnableGroup -> Bool) : Bool
Returns whether all resolutions from this set come from the same
RunnableGroup
. -
#app? : Bool
Returns whether all resolutions in this set come from the same application
RunnableGroup
. -
#append(resolution : Resolution)
Appends a resolution to this set.
-
#append(set : ResolutionSet)
Appends an entire resolution set at once.
-
#each(& : Resolution -> )
Yields resolutions in this resolution set.
-
#each_designation(root : RunnableRoot, & : Designation -> )
Yields environment designations for the given runnable root.
-
#each_group(& : RunnableGroup, Resolution -> )
Yields all
RunnableGroup
objects that have contributed to this resolution set. -
#each_preamble_with_group(root : RunnableRoot, & : String, RunnableGroup -> )
Yields preambles of unique application and library
RunnableGroup
s that have contributed to this resolution set, as well as the groups themselves. -
#each_unique_app(& : RunnableGroup -> )
Yields unique application
RunnableGroup
s that have contributed to this resolution set. -
#each_unique_dependency(& : Resolution::Dependency -> )
Yields all unique
Resolution::Dependency
objects in this resolution set. -
#each_unique_dependency_with_dependents(& : Resolution::Dependency, ResolutionSet -> )
Yields each unique
Resolution::Dependency
object followed by aResolutionSet
of its dependents. -
#each_unique_group(& : RunnableGroup -> )
Yields all
RunnableGroup
objects that have contributed to this resolution set. -
#each_unique_lib(& : RunnableGroup -> )
Yields unique library
RunnableGroup
s that have contributed to this resolution set. -
#empty?
Returns whether there are no resolutions in this resolution set.
-
#groups : Array(RunnableGroup)
Returns an array of
RunnableGroup
objects that have contributed to this resolution set. -
#lib? : Bool
Returns whether all resolutions in this set come from the same library
RunnableGroup
. -
#size
Returns the amount of resolutions in this resolution set.
- #to_s(io)
-
#unique_apps : Array(RunnableGroup)
Returns an array of unique application
RunnableGroup
s that have contributed to this resolution set.
Constructor Detail
Instance Method Detail
Returns whether all resolutions from this set come from the same
RunnableGroup
. RunnableGroup
to match is selected by applying
the block to all RunnableGroup
s in this set.
Returns whether all resolutions in this set come from the same
application RunnableGroup
.
Appends a resolution to this set. In case this set already
contains a resolution for the same path, the two resolutions
are merged using Resolution#merge!
.
Appends an entire resolution set at once. Essentially the same
as appending each Resolution
from set.
Yields environment designations for the given runnable root.
Environment designations are resolution sets coupled to an environment. That is, an environment designation is a "token" stating this environment should handle resolutions out of that resolution set.
Yields all RunnableGroup
objects that have contributed to this
resolution set. The yielded groups can repeat.
Yields preambles of unique application and library RunnableGroup
s
that have contributed to this resolution set, as well as the
groups themselves.
Yields unique application RunnableGroup
s that have contributed
to this resolution set.
Yields all unique Resolution::Dependency
objects in
this resolution set.
Yields all RunnableGroup
objects that have contributed to this
resolution set. The yielded groups do not repeat.
Yields unique library RunnableGroup
s that have contributed to
this resolution set.
Returns an array of RunnableGroup
objects that have contributed
to this resolution set. Objects in the array can repeat.
Returns whether all resolutions in this set come from the same
library RunnableGroup
.