Class: P2::ConstTagNode
- Inherits:
-
Object
- Object
- P2::ConstTagNode
- 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) ⇒ ConstTagNode
constructor
A new instance of ConstTagNode.
Constructor Details
#initialize(call_node, translator) ⇒ ConstTagNode
Returns a new instance of ConstTagNode.
97 98 99 100 |
# File 'lib/p2/compiler/nodes.rb', line 97 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.
95 96 97 |
# File 'lib/p2/compiler/nodes.rb', line 95 def call_node @call_node end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
95 96 97 |
# File 'lib/p2/compiler/nodes.rb', line 95 def location @location end |
Instance Method Details
#accept(visitor) ⇒ Object
102 103 104 |
# File 'lib/p2/compiler/nodes.rb', line 102 def accept(visitor) visitor.visit_const_tag_node(self) end |