Class: RenderChildrenNode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(call_node, translator) ⇒ RenderChildrenNode

Returns a new instance of RenderChildrenNode.



214
215
216
217
218
# File 'lib/p2/compiler/nodes.rb', line 214

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.



212
213
214
# File 'lib/p2/compiler/nodes.rb', line 212

def call_node
  @call_node
end

#locationObject (readonly)

Returns the value of attribute location.



212
213
214
# File 'lib/p2/compiler/nodes.rb', line 212

def location
  @location
end

Instance Method Details

#accept(visitor) ⇒ Object



220
221
222
# File 'lib/p2/compiler/nodes.rb', line 220

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