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 20 def initialize(*elements) @elements = *elements end
peek(*)
click to toggle source
# File lib/dentaku/ast/array.rb, line 17 def self.peek(*) end
Public Instance Methods
accept(visitor)
click to toggle source
# File lib/dentaku/ast/array.rb, line 36 def accept(visitor) visitor.visit_array(self) end
dependencies(context = {})
click to toggle source
# File lib/dentaku/ast/array.rb, line 28 def dependencies(context = {}) @elements.flat_map { |el| el.dependencies(context) } end
type()
click to toggle source
# File lib/dentaku/ast/array.rb, line 32 def type nil end
value(context = {})
click to toggle source
# File lib/dentaku/ast/array.rb, line 24 def value(context = {}) @elements.map { |el| el.value(context) } end