class Dentaku::AST::Array
Public Class Methods
arity()
click to toggle source
# File lib/dentaku/ast/array.rb, line 6 def self.arity end
max_param_count()
click to toggle source
# File lib/dentaku/ast/array.rb, line 13 def self.max_param_count Float::INFINITY end
min_param_count()
click to toggle source
# File lib/dentaku/ast/array.rb, line 9 def self.min_param_count 0 end
new(*elements)
click to toggle source
# File lib/dentaku/ast/array.rb, line 17 def initialize(*elements) @elements = *elements end
Public Instance Methods
accept(visitor)
click to toggle source
# File lib/dentaku/ast/array.rb, line 33 def accept(visitor) visitor.visit_array(self) end
dependencies(context = {})
click to toggle source
# File lib/dentaku/ast/array.rb, line 25 def dependencies(context = {}) @elements.flat_map { |el| el.dependencies(context) } end
type()
click to toggle source
# File lib/dentaku/ast/array.rb, line 29 def type nil end
value(context = {})
click to toggle source
# File lib/dentaku/ast/array.rb, line 21 def value(context = {}) @elements.map { |el| el.value(context) } end