Class: Kumi::Core::NAST::Node
- Inherits:
-
Struct
- Object
- Struct
- Kumi::Core::NAST::Node
- Defined in:
- lib/kumi/core/nast.rb
Direct Known Subclasses
Call, Const, Declaration, Fold, Hash, ImportCall, IndexRef, InputRef, Pair, Reduce, Ref, Select, Tuple
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#loc ⇒ Object
Returns the value of attribute loc.
-
#meta ⇒ Object
Returns the value of attribute meta.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(**args) ⇒ Node
constructor
A new instance of Node.
Constructor Details
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
17 18 19 |
# File 'lib/kumi/core/nast.rb', line 17 def id @id end |
#loc ⇒ Object
Returns the value of attribute loc
17 18 19 |
# File 'lib/kumi/core/nast.rb', line 17 def loc @loc end |
#meta ⇒ Object
Returns the value of attribute meta
17 18 19 |
# File 'lib/kumi/core/nast.rb', line 17 def @meta end |
Instance Method Details
#accept(visitor) ⇒ Object
24 25 26 |
# File 'lib/kumi/core/nast.rb', line 24 def accept(visitor) visitor.visit_node(self) end |