Class: RenderChildrenNode
- Inherits:
-
Object
- Object
- RenderChildrenNode
- Defined in:
- lib/p2/compiler/nodes.rb
Instance Attribute Summary collapse
-
#call_node ⇒ Object
readonly
Returns the value of attribute call_node.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(call_node, translator) ⇒ RenderChildrenNode
constructor
A new instance of RenderChildrenNode.
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_node ⇒ Object (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 |
#location ⇒ Object (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 |