Class: P2::RawNode

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

Overview

Represents a raw call

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(call_node, _translator) ⇒ RawNode



125
126
127
128
# File 'lib/p2/compiler/nodes.rb', line 125

def initialize(call_node, _translator)
  @call_node = call_node
  @location = call_node.location
end

Instance Attribute Details

#call_nodeObject (readonly)

Returns the value of attribute call_node.



123
124
125
# File 'lib/p2/compiler/nodes.rb', line 123

def call_node
  @call_node
end

#locationObject (readonly)

Returns the value of attribute location.



123
124
125
# File 'lib/p2/compiler/nodes.rb', line 123

def location
  @location
end

Instance Method Details

#accept(visitor) ⇒ Object



130
131
132
# File 'lib/p2/compiler/nodes.rb', line 130

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