Class: Deadfire::ApplyNode

Inherits:
Object
  • Object
show all
Defined in:
lib/deadfire/front_end/apply_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node, mixin_names) ⇒ ApplyNode

Returns a new instance of ApplyNode.



7
8
9
10
# File 'lib/deadfire/front_end/apply_node.rb', line 7

def initialize(node, mixin_names)
  @node = node
  @mixin_names = fetch_mixin_name_from(mixin_names)
end

Instance Attribute Details

#mixin_namesObject (readonly)

Returns the value of attribute mixin_names.



5
6
7
# File 'lib/deadfire/front_end/apply_node.rb', line 5

def mixin_names
  @mixin_names
end

#nodeObject (readonly)

Returns the value of attribute node.



5
6
7
# File 'lib/deadfire/front_end/apply_node.rb', line 5

def node
  @node
end

Instance Method Details

#accept(visitor) ⇒ Object



12
13
14
# File 'lib/deadfire/front_end/apply_node.rb', line 12

def accept(visitor)
  visitor.visit_apply_node(self)
end

#linenoObject



16
17
18
# File 'lib/deadfire/front_end/apply_node.rb', line 16

def lineno
  node.lineno
end