Class: RenderYieldNode

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) ⇒ RenderYieldNode

Returns a new instance of RenderYieldNode.



200
201
202
203
204
# File 'lib/p2/compiler/nodes.rb', line 200

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.



198
199
200
# File 'lib/p2/compiler/nodes.rb', line 198

def call_node
  @call_node
end

#locationObject (readonly)

Returns the value of attribute location.



198
199
200
# File 'lib/p2/compiler/nodes.rb', line 198

def location
  @location
end

Instance Method Details

#accept(visitor) ⇒ Object



206
207
208
# File 'lib/p2/compiler/nodes.rb', line 206

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