vendored/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb in bolt-0.16.0 vs vendored/puppet/lib/puppet/pops/evaluator/evaluator_impl.rb in bolt-0.16.1
- old
+ new
@@ -340,11 +340,11 @@
[]
when Array
candidate
when Hash
candidate.to_a
- when Puppet::Pops::Types::Iterator
+ when Puppet::Pops::Types::Iterable
candidate.to_a
else
# turns anything else into an array (so result can be unfolded)
[candidate]
end
@@ -701,11 +701,11 @@
end
end
end
# Evaluates a CollectExpression by creating a collector transformer. The transformer
- # will evaulate the collection, create the appropriate collector, and hand it off
+ # will evaluate the collection, create the appropriate collector, and hand it off
# to the compiler to collect the resources specified by the query.
#
def eval_CollectExpression o, scope
if o.query.is_a?(Model::ExportedQuery)
optionally_fail(Issues::RT_NO_STORECONFIGS, o);
@@ -1192,10 +1192,10 @@
when Array
# Hash[[a, 1, b, 2]] => {}
# Hash[a,1,b,2] => {a => 1, b => 2}
# Hash[[a,1], [b,2]] => {[a,1] => [b,2]}
# Hash[[[a,1], [b,2]]] => {a => 1, b => 2}
- # Use type calcultor to determine if array is Array[Array[?]], and if so use second form
+ # Use type calculator to determine if array is Array[Array[?]], and if so use second form
# of call
t = @@type_calculator.infer(y)
if t.element_type.is_a? Types::PArrayType
Hash[y]
else