class Dentaku::AST::Access

Attributes

index[R]
structure[R]

Public Class Methods

arity() click to toggle source
# File lib/dentaku/ast/access.rb, line 8
def self.arity
  2
end
max_param_count() click to toggle source
# File lib/dentaku/ast/access.rb, line 16
def self.max_param_count
  arity
end
min_param_count() click to toggle source
# File lib/dentaku/ast/access.rb, line 12
def self.min_param_count
  arity
end
new(data_structure, index) click to toggle source
# File lib/dentaku/ast/access.rb, line 20
def initialize(data_structure, index)
  @structure = data_structure
  @index = index
end

Public Instance Methods

accept(visitor) click to toggle source
# File lib/dentaku/ast/access.rb, line 39
def accept(visitor)
  visitor.visit_access(self)
end
dependencies(context = {}) click to toggle source
# File lib/dentaku/ast/access.rb, line 31
def dependencies(context = {})
  @structure.dependencies(context) + @index.dependencies(context)
end
type() click to toggle source
# File lib/dentaku/ast/access.rb, line 35
def type
  nil
end
value(context = {}) click to toggle source
# File lib/dentaku/ast/access.rb, line 25
def value(context = {})
  structure = @structure.value(context)
  index = @index.value(context)
  structure[index]
end