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

Constructor Details

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

Returns a new instance of IndexRef.



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

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.



74
75
76
# File 'lib/kumi/core/nast.rb', line 74

def axes
  @axes
end

#input_fqnObject (readonly)

Returns the value of attribute input_fqn.



74
75
76
# File 'lib/kumi/core/nast.rb', line 74

def input_fqn
  @input_fqn
end

#nameObject (readonly)

Returns the value of attribute name.



74
75
76
# File 'lib/kumi/core/nast.rb', line 74

def name
  @name
end

Instance Method Details

#accept(visitor) ⇒ Object



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

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