Class: Kumi::Core::NAST::IndexRef

Inherits:
Node
  • Object
show all
Defined in:
lib/kumi/core/nast.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#id, #loc, #meta

Instance Method Summary collapse

Methods inherited from Node

#children, #each_child

Constructor Details

#initialize(name:, input_fqn:, **k) ⇒ IndexRef

Returns a new instance of IndexRef.



80
81
82
83
84
# File 'lib/kumi/core/nast.rb', line 80

def initialize(name:, input_fqn:, **k)
  super(**k)
  @name = name.to_sym
  @input_fqn = input_fqn
end

Instance Attribute Details

#axesObject (readonly)

Returns the value of attribute axes.



78
79
80
# File 'lib/kumi/core/nast.rb', line 78

def axes
  @axes
end

#input_fqnObject (readonly)

Returns the value of attribute input_fqn.



78
79
80
# File 'lib/kumi/core/nast.rb', line 78

def input_fqn
  @input_fqn
end

#nameObject (readonly)

Returns the value of attribute name.



78
79
80
# File 'lib/kumi/core/nast.rb', line 78

def name
  @name
end

Instance Method Details

#accept(visitor) ⇒ Object



90
# File 'lib/kumi/core/nast.rb', line 90

def accept(visitor) = visitor.respond_to?(:visit_index_ref) ? visitor.visit_index_ref(self) : super