Class: RenderChildrenNode

Inherits:
Object
  • Object
show all
Defined in:
lib/papercraft/compiler/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(call_node, translator) ⇒ RenderChildrenNode

Returns a new instance of RenderChildrenNode.



221
222
223
224
225
# File 'lib/papercraft/compiler/nodes.rb', line 221

def initialize(call_node, translator)
  @call_node = call_node
  @tag = call_node.name
  @location = call_node.location
end

Instance Attribute Details

#call_nodeObject (readonly)

Returns the value of attribute call_node.



219
220
221
# File 'lib/papercraft/compiler/nodes.rb', line 219

def call_node
  @call_node
end

#locationObject (readonly)

Returns the value of attribute location.



219
220
221
# File 'lib/papercraft/compiler/nodes.rb', line 219

def location
  @location
end

Instance Method Details

#accept(visitor) ⇒ Object



227
228
229
# File 'lib/papercraft/compiler/nodes.rb', line 227

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