Class: P2::RawNode
- Inherits:
-
Object
- Object
- P2::RawNode
- Defined in:
- lib/p2/compiler/nodes.rb
Overview
Represents a raw call
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) ⇒ RawNode
constructor
A new instance of RawNode.
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_node ⇒ Object (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 |
#location ⇒ Object (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 |